Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773AbdIOTcA (ORCPT ); Fri, 15 Sep 2017 15:32:00 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:57404 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbdIOTb7 (ORCPT ); Fri, 15 Sep 2017 15:31:59 -0400 From: Arnd Bergmann To: Boris Ostrovsky , Juergen Gross , x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , "Kirill A. Shutemov" , Vitaly Kuznetsov , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] xen: x86: mark xen_find_pt_base as __init 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== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1217 Lines: 32 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 --- arch/x86/xen/mmu_pv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.9.0