Message ID | 20170915192930.783054-1-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp978846qgf; Fri, 15 Sep 2017 12:31:43 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDXCkONKXsIqdr6hMh9z+iVsab3lk7w4+Ba32RUynmFQymUA/kwI+JKKTnURn6FWnV2LZaQ X-Received: by 10.36.60.88 with SMTP id m85mr6475769ita.138.1505503903872; Fri, 15 Sep 2017 12:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505503903; cv=none; d=google.com; s=arc-20160816; b=GbhlwaD3SkzytEOLqIth7S6I4IM9+J6AJqJMjaUHk9i4Axq9ZbKX58kM1fxHsWhdLp yWc/F8+Xhzf9BuvaX65VQqcv+azwEEAxnlC2NSdeVI4zVe0ZXcADUtvTyscOSQEHO2ME q51j907iVpftD+noCL+GPgoy0je007aRcYjL76ZzW0V5NEN6YvL0g7yjBt1WGLVKpdgi ntu29vUYJ5FEXX9R3DeG35iWSbbwiQAAdEoP9C4i8e91pJ2GU88fjbJDkayJUDGKxiDk NQZ3hS5m76pWASh0QddL3XNJ+0k0nt5Da9Y9DzMPHdHJecdTu7bDhqZ0GdTq5y6bN+ST RgiA== 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:message-id:date:to:from :arc-authentication-results; bh=J9OEDK16KtczSQzL7qH4v2XBD9U3/1vOWN49XAYj2NM=; b=bO5ztn8sXRs1BrR19MLMze4FO8N6NrxZ/pp0tdIY/bBUe08foCJvECav0h5bOIILF+ RhKgFKQOo7WMncPjRwGCLC1ntP4lG9QSGejQR2h14oeZ8wZgUCZ9lo54qOEOXzv+8nu3 vKVxD4dscRNHBEHlzmt90FLAPCsCt4z4XGHOs/yw0tcrCd5jnyCi0+ieBSIUcSpcEt7d CEqqi3FuHL1glzaY6lClb7PVH6SEt/3PHaENPhcYQ2UqqluVoDkx5JCidRvYY6aTXKl9 ItU4IMNgeHpH28Xq4CZgc310WVmpIIJt5BvQPE3SMYAuAqysSjqjbK1dtSh1n8hBgiIK 2qyA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: <xen-devel-bounces@lists.xen.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id p5si21302itp.171.2017.09.15.12.31.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 12:31:43 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.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.xen.org>) id 1dswJ9-00067Z-1T; Fri, 15 Sep 2017 19:29:47 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <arnd@arndb.de>) id 1dswJ7-00067T-Ib for xen-devel@lists.xenproject.org; Fri, 15 Sep 2017 19:29:45 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id BA/90-03642-82A2CB95; Fri, 15 Sep 2017 19:29:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRWlGSWpSXmKPExsVy5bGghK6a1p5 Ig6Z5Yhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8a6JxuYCw5xVqz/YtHAOImji5GLQ0hgF6PE 9wM7mLsYOTnYBJQlXh+dwgpiiwgkS2z8PZMdpIhZ4BKTxJW+W2AJYQEriSmvPrOD2CwCqhKvr nxhArF5BYwlbq7/BzZIQkBOouH8fWaQZgmBz4wSK498YYRwnrBJvPz3jW0CI9cCRoZVjBrFqU VlqUW6RmZ6SUWZ6RkluYmZObqGBmZ6uanFxYnpqTmJScV6yfm5mxiBvmQAgh2MZxYEHmKU5GB SEuW9rbwnUogvKT+lMiOxOCO+qDQntfgQowwHh5IE73QNoJxgUWp6akVaZg4wqGDSEhw8SiK8 m0DSvMUFibnFmekQqVOMuhwdN+/+YRJiycvPS5US5y0DKRIAKcoozYMbAQvwS4yyUsK8jEBHC fEUpBblZpagyr9iFOdgVBLm3QUyhSczrwRu0yugI5iAjjhzegfIESWJCCmpBsYZ1afe17w7MS POhr2Zj/G+un2Frs48qS4z30/pUblLBc8s57J/t+vh3Rfi/JcsdmltqMlcm9DQ7ZEye+WPxVz 2vfNTtaptY2IOKfyRWnhbvDXhIYNPhqKX4pPy3tB1hk6bnimEXfureHz5rGuvF2f3ecwyOjqX ofKi4qvFt/7ffNC1XbL0s6oSS3FGoqEWc1FxIgAmxjcFawIAAA== X-Env-Sender: arnd@arndb.de X-Msg-Ref: server-14.tower-27.messagelabs.com!1505503782!104574044!1 X-Originating-IP: [212.227.17.24] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 36331 invoked from network); 15 Sep 2017 19:29:42 -0000 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.24) by server-14.tower-27.messagelabs.com with DHE-RSA-AES128-GCM-SHA256 encrypted SMTP; 15 Sep 2017 19:29:42 -0000 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0Mg0zl-1e5PB41Knl-00NPSb; Fri, 15 Sep 2017 21:29:35 +0200 From: Arnd Bergmann <arnd@arndb.de> To: Boris Ostrovsky <boris.ostrovsky@oracle.com>, Juergen Gross <jgross@suse.com>, x86@kernel.org Date: Fri, 15 Sep 2017 21:29:13 +0200 Message-Id: <20170915192930.783054-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:wcwMh5RTzVus10lloTM6rs26TJ3r7VgGjsfGcy0QfaVg0d57F3D 3wr8kGhyudiuA0z8zgqkRKAkIsqcKzxXTzpUhUHIR/vbH5gpLyBEcCimv7mpNqZD4j02Uci lFWeW6KhjA0UOVj62/msKM/W+eolkYkIE0AW4V+ZzcaOQpQXuIXw8L1SokkWFXv2oC5QLjq kTQsigN7lWwjkuvZ/R39Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:0V2CV6NlPww=:T7MYWE8ry83bAVpqtrdpxT idG5yppAQMKX9ZG6lmVTwEC9x6sAtkhJoJx09JYYJr4MrBAstp3rL4FF4/vHJs+CSUBJXXjKn I7L76hysmHy2n0x4izDdEfLlLxkjjyOmuZissdBUa13B4CN1oEMJ5L3AK6sH5MyTCiF3bUJaJ Bg4pe6k/c9nqqYgvDaQrHVvwaMXEE5aWHw520iuvtaXl90MpJP90laFYgQ5orMwI9aRFCyeWk ThaduZDrSIGVFGaBDF6wCM/8ueTWdLNpqse7LBbRlQ1t4h/IlyAuREhms6yNNg7cWkcryb5Js KQlRN9uUAw9MH1nL//otsX9QUqVaiTtTRPZnJvozUAjnhg9r8D9I0cOJlMRNA1qhpCtTPQ5IN ozqJ+MwzNxoD+/COAZQNAZLQ5gik9d07ctUcElJW9o+aCY1lRNVMaoKsqCsGmu8I/TUoXE1hS np4UwA3qxQhDYFeOD8zAU542Y4zxQgYW0NvVk/BoDYFp7k7HQghuhfIPk0I1AJs/yfaHzS9vW hOwXojZwfg9e5AHvnjpX9PefJNPdgxbkPYtbMpP5Awhw3lmWPifpYGM+4WvCVNVCX3IBzMSS4 vdHo/ZbD9TRlkh301usYIKDRaAFXiPdKTTeD8YmbgJXFuwluFHXqFBxPgNGiHiZeAlkHvRYrT 0VLd16LACJ99M+G7Coy4wvIgi9/r9RYGwQuh6OSHM+wsWmSsIfRUbarTq7UTadOiyMRmfp1Zm 9Xltam2zqN1Vrcjvst6y9ZXhGZh+Ct88m7xynQ== Cc: Arnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>, Andy Lutomirski <luto@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, xen-devel@lists.xenproject.org, Thomas Gleixner <tglx@linutronix.de>, Vitaly Kuznetsov <vkuznets@redhat.com>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Subject: [Xen-devel] [PATCH] xen: x86: mark xen_find_pt_base as __init X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> |
Series |
[Xen-devel] xen: x86: mark xen_find_pt_base as __init
|
expand
|
diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index 509f560bd0c6..7330cb3b2283 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c @@ -2220,7 +2220,7 @@ static void __init xen_write_cr3_init(unsigned long cr3) * not the first page table in the page table pool. * Iterate through the initial page tables to find the real page table base. */ -static phys_addr_t xen_find_pt_base(pmd_t *pmd) +static phys_addr_t __init xen_find_pt_base(pmd_t *pmd) { phys_addr_t pt_base, paddr; unsigned pmdidx;
gcc-4.6 causes a harmless link-time warning: WARNING: vmlinux.o(.text.unlikely+0x48e): Section mismatch in reference from the function xen_find_pt_base() to the function .init.text:m2p() The function xen_find_pt_base() references the function __init m2p(). This is often because xen_find_pt_base lacks a __init annotation or the annotation of m2p is wrong. Newer compilers inline this function, so it never shows up, but marking it __init is the right way to avoid the warning. Fixes: 70e61199559a ("xen: move p2m list if conflicting with e820 map") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/x86/xen/mmu_pv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)