Message ID | 20180221140259.29360-3-julien.grall@arm.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp662690ljc; Wed, 21 Feb 2018 06:06:04 -0800 (PST) X-Google-Smtp-Source: AH8x22505gNM/HnTOTFyd9jvOJix8g49qRxaPbf9C/Gb5o2RCkbfcVjHmmt9mlp5aVhU8SmZrCMj X-Received: by 10.200.30.1 with SMTP id n1mr5615195qtl.156.1519221964600; Wed, 21 Feb 2018 06:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519221964; cv=none; d=google.com; s=arc-20160816; b=sOji3qI+2fvkSr7gdnVvRkrocqXyi8UbUYx1lUwK7ic0TNQ4nhbQJC8X1cqC1y9IKj qjRoX9Mq938juuGQlI85whSH9LQl+DoMc/qStUsljcKUv4lWo4vXo0m39n4IvFbOnt0R 1AGjxWnebYLvLufz5jdUpq6s+Z1CnG6gH35bEqObR2esYHWTlvPeOi/nMs4SRB+KuTat tmL5ST2nZouH9AXVO5+UAM52HkNhPEkg32QoQvfnW57ojHL2bvWRp82oygMOGa/oYp4b iyFMpH2x4XbEC6Rc9A+AmJhmpfygiX5EliKSgbpdpCFgeMNeKIMM4j+du3Mkhhs4SRni rVyw== 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 :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=RipXyx7MaULhRvTTeNMhDW2Zdbfj1zc0QAEdB4ZBzXI=; b=sclrLyMBN2yuOONlwxqyzBFOqxQa1eDXiAKoFSYJR9yExvJeib++g4LBiCflQg0LcF 3xkkzwjxNdTFRYsVlDL13Hu6WxSROUpgQYQoj5l7nia89YSvmqOIdaal1xBlQwL/Hu/K ck4fnnbV8BMcFo2nhbn4XG7L6Vl8GABvXHSR7RsQldItlOpdO3DYtE+EW2T/cXXMbXZF kkPqiZCcn1ijUgL6kB4penNsaFsF+1L7QgDYtftBFpLsawfhmaOm+XPNEN1lrcZoU8go zzaNMVgwFq9Ixq0HnXQrFAZ0qy0U75Z79k9JjAiFT8Ar2Mihxjj/eLHB+R/1kUsS5CrC q1Vw== 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: <xen-devel-bounces@lists.xenproject.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id r129si3111673qkd.206.2018.02.21.06.06.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 06:06:04 -0800 (PST) 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.84_2) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1eoUzS-0004Op-4Y; Wed, 21 Feb 2018 14:03:22 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <srs0=5efp=fp=arm.com=julien.grall@srs-us1.protection.inumbo.net>) id 1eoUzR-0004Nu-1M for xen-devel@lists.xen.org; Wed, 21 Feb 2018 14:03:21 +0000 X-Inumbo-ID: 2f37828d-1710-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 2f37828d-1710-11e8-b9b1-635ca7ef6cff; Wed, 21 Feb 2018 14:04:51 +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 DF77A15AB; Wed, 21 Feb 2018 06:03:14 -0800 (PST) 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 236C83F318; Wed, 21 Feb 2018 06:03:13 -0800 (PST) From: Julien Grall <julien.grall@arm.com> To: xen-devel@lists.xen.org Date: Wed, 21 Feb 2018 14:02:45 +0000 Message-Id: <20180221140259.29360-3-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180221140259.29360-1-julien.grall@arm.com> References: <20180221140259.29360-1-julien.grall@arm.com> Cc: Julien Grall <julien.grall@arm.com>, Stefano Stabellini <sstabellini@kernel.org> Subject: [Xen-devel] [PATCH v4 02/16] xen/arm: setup: use maddr_to_mfn rather than _mfn(paddr_to_pfn(...)) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
xen: Convert page_to_mfn and mfn_to_page to use typesafe MFN
|
expand
|
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 032a6a882d..de9e958bfe 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -268,8 +268,8 @@ void __init discard_initial_modules(void) if ( mi->module[i].kind == BOOTMOD_XEN ) continue; - if ( !mfn_valid(_mfn(paddr_to_pfn(s))) || - !mfn_valid(_mfn(paddr_to_pfn(e)))) + if ( !mfn_valid(maddr_to_mfn(s)) || + !mfn_valid(maddr_to_mfn(e)) ) continue; dt_unreserved_regions(s, e, init_domheap_pages, 0);
The construction _mfn(paddr_to_pfn(...)) can be simplified by using maddr_to_mfn. Signed-off-by: Julien Grall <julien.grall@arm.com> --- Cc: Stefano Stabellini <sstabellini@kernel.org> Changes in v4: - Patch added --- xen/arch/arm/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)