Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751331AbdIPNSQ (ORCPT ); Sat, 16 Sep 2017 09:18:16 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:31108 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbdIPNSO (ORCPT ); Sat, 16 Sep 2017 09:18:14 -0400 Subject: Re: [PATCH] xen: x86: mark xen_find_pt_base as __init To: Arnd Bergmann , Juergen Gross , x86@kernel.org References: <20170915192930.783054-1-arnd@arndb.de> Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , "Kirill A. Shutemov" , Vitaly Kuznetsov , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org From: Boris Ostrovsky Message-ID: Date: Sat, 16 Sep 2017 09:17:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170915192930.783054-1-arnd@arndb.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 701 Lines: 18 On 09/15/2017 03:29 PM, Arnd Bergmann wrote: > 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 Applied to for-linus-14b. -boris