From patchwork Mon Jul 16 17:27:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 142084 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2677808ljj; Mon, 16 Jul 2018 10:29:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeR52yUwhGyp8YpAw5AS74+JsB8phZHYvvHMwx5mz6VlRfrxsqDqJUFIzS1T87FodSWcEkQ X-Received: by 2002:a24:53c3:: with SMTP id n186-v6mr13220240itb.11.1531762187067; Mon, 16 Jul 2018 10:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531762187; cv=none; d=google.com; s=arc-20160816; b=h6DYzGRriZA5XNyr2xu8Fo3TUv16NXjw1xSE3OXURhXY9aph5r0JgdOVtYS5TzXsbg kbJPX+1elj6j1LUlJVdUTAWqTrEPOPWpBwqoAbwhP0Q5dqdrWkv05m4WDAHGA8UNfPIv eCOvbT+k6hCdpN8m2Ke1IpBA+mBlLSZqAKc1bs/Vef3Am3NHx/AC6hqh02f/fqkvN5eo LJjNqT+hqql7WI1OFEsCy00eTkF6qMc8nakE3teVnCf9GbOqlnkR2YZXa50fgjo4gA4H KtrXgAar89SLbZnQPzuwzMePf2TPw70FlFmuJhHl7cXt3aZ4Yq7vDEXLolmFWlSPr6bT V06w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=oRqg2+0k7BsPP0trlWmCgIMiIABYx7Vk6B5dmwr6eSE=; b=TEaqochdu1WyDSy1Dj7oC2pip6y4/tGyTFrvHOYaCcgIxXXdWo+vIGApD9nbPj7spq mcQG6ettOrpuMNC30FZtNDCHeegd7gfStehX+t9gdOkJgSWb+ZTq6HFFaJPOgTND+jEN /jS2k+OjMGODycvHTlI2I+GHDlPYlf2Qcbuw5+QOiMV1uvacziSUU6Jf/xXEgJmf3L0g zxz60iyOl5vKX4k9td+3Q+a9J4ubrMA1nabkeqiXGUawE6En9eN5ZAAfh1M8986B9OzI n/KMxbzZfVeAVuC4g+1IS/x2NhxgwSYRp6uehwTLutDzTR7AuFKIrLcd6smmNIrj97TW iA3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id a26-v6si11646990jab.80.2018.07.16.10.29.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 10:29:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7Ha-0006a1-RZ; Mon, 16 Jul 2018 17:27:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7HZ-0006XN-A4 for xen-devel@lists.xenproject.org; Mon, 16 Jul 2018 17:27:33 +0000 X-Inumbo-ID: 8b0f7402-891d-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 8b0f7402-891d-11e8-a6a9-d7ebe60f679a; Mon, 16 Jul 2018 17:27:41 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EDF1315AD; Mon, 16 Jul 2018 10:27:31 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 100A73F5B1; Mon, 16 Jul 2018 10:27:30 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 16 Jul 2018 18:27:09 +0100 Message-Id: <20180716172712.20294-13-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180716172712.20294-1-julien.grall@arm.com> References: <20180716172712.20294-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 12/15] xen/arm: p2m: Rename ret to mfn in p2m_lookup X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , sstabellini@kernel.org, Julien Grall MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Comestic change to make clearer what is the return ('ret' is a bit too generic). Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- xen/arch/arm/p2m.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index 07925a1be4..66d58fabd7 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -383,14 +383,14 @@ out: mfn_t p2m_lookup(struct domain *d, gfn_t gfn, p2m_type_t *t) { - mfn_t ret; + mfn_t mfn; struct p2m_domain *p2m = p2m_get_hostp2m(d); p2m_read_lock(p2m); - ret = p2m_get_entry(p2m, gfn, t, NULL, NULL); + mfn = p2m_get_entry(p2m, gfn, t, NULL, NULL); p2m_read_unlock(p2m); - return ret; + return mfn; } int guest_physmap_mark_populate_on_demand(struct domain *d,