Message ID | 20180321044737.20794-3-julien.grall@arm.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1696490ljb; Tue, 20 Mar 2018 21:50:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELvFhDYftdP1MThG4iHCFYfT+T0oZP/5BKencbL7MonKkIzMH7vDB+qNEn4MfFYF05dWdDxE X-Received: by 10.107.165.70 with SMTP id o67mr18403589ioe.87.1521607812915; Tue, 20 Mar 2018 21:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521607812; cv=none; d=google.com; s=arc-20160816; b=hHCkF3iPQAoSbm682WemLm+P1pMtrluqE+Q/Wz3dRGKc4sWixtKYw3kF+5ewNNGcq6 CQAg8SKhSF+IREayOQ+GVQNNF6vFr86n+FmGkCN/FU4/3Py6C99sOvRJsT2f43Hm+UJ+ Kg8VGEWJqDI79H9hu/BTooTiwIHsWfQz2UJ25UhY5zJoK/8aFKSCn1qqXMAOD3RTOBqk fpYBPjtu0cMTl0tAVTzcQ3vpV4sEQWuZ5SPGB+K0kj/zWkcJUh1oTNY4P8it1MZ3sW6x Pi+obMDUvK8CYy7wAtMQk1fz7hYrhJmbaSiJnqO5RuvT8W9ajmTcwZ594KBR8wE5q7av +3xA== 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=nBBPmQCCzShR0jKEB/u2PMQwHjsvM1SnteuhtBsb9ZI=; b=dpUZOR6TX3eQ88acHlq0rAcw8/twMhyMLSxWjRlm82yrKfUI3yAb30nq0KVIVkDvfN BLmuiqOtV7y2/QRsuKdyXhwsvWRS2npuYReycx/edvlochqBK6sdyDVfCQZAG3c3tvDS n/quJvOvEVFl1SaC6jXxqI/ywqK6ttb8TT+QsI4ZI5HfWhi/vjEXD/U5NCtHoujNHpJ8 AIRzH8rtcNXHgzaW02SQDpjrowbfNbg1BlYvC/DOUOPLkxqo4E/DPh+ZAgnU6UjuiAuX KYyNkik/Ng5qGnjOCUetMaC1j+FV9rjh6wDBbWPg0BiHuH5RIQDSkhtmsVX/2eJesZYO qWJQ== 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 n6si606357iof.277.2018.03.20.21.50.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Mar 2018 21:50:12 -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 <xen-devel-bounces@lists.xenproject.org>) id 1eyVfH-0006mo-U8; Wed, 21 Mar 2018 04:47:55 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <srs0=kbl4=gl=arm.com=julien.grall@srs-us1.protection.inumbo.net>) id 1eyVfH-0006mX-Do for xen-devel@lists.xen.org; Wed, 21 Mar 2018 04:47:55 +0000 X-Inumbo-ID: 156c2cbc-2cc3-11e8-8248-2fda3a446a53 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 156c2cbc-2cc3-11e8-8248-2fda3a446a53; Wed, 21 Mar 2018 04:48:22 +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 8054F15BF; Tue, 20 Mar 2018 21:47:54 -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 964723F487; Tue, 20 Mar 2018 21:47:53 -0700 (PDT) From: Julien Grall <julien.grall@arm.com> To: xen-devel@lists.xen.org Date: Wed, 21 Mar 2018 04:47:23 +0000 Message-Id: <20180321044737.20794-3-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180321044737.20794-1-julien.grall@arm.com> References: <20180321044737.20794-1-julien.grall@arm.com> Subject: [Xen-devel] [for-4.11][PATCH v6 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.23 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> Cc: Julien Grall <julien.grall@arm.com>, Stefano Stabellini <sstabellini@kernel.org>, George Dunlap <george.dunlap@citrix.com> 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 b17797dc97..1ce6a26e84 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);