From: Joerg Roedel Subject: Re: [PATCH] iommu: dmar: fix harmless section mismatch warning Date: Tue, 19 Sep 2017 11:45:24 +0200 Message-ID: <20170919094524.3shqnacp2plp7rod@8bytes.org> References: <20170912201032.3661566-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20170912201032.3661566-1-arnd-r2nGTMty4D4@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Arnd Bergmann Cc: Jani Nikula , "Rafael J. Wysocki" , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jarkko Sakkinen , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Lv Zheng , Andy Shevchenko List-Id: iommu@lists.linux-foundation.org On Tue, Sep 12, 2017 at 10:10:21PM +0200, Arnd Bergmann wrote: > Building with gcc-4.6 results in this warning due to > dmar_table_print_dmar_entry being inlined as in newer compiler versions: > > WARNING: vmlinux.o(.text+0x5c8bee): Section mismatch in reference from the function dmar_walk_remapping_entries() to the function .init.text:dmar_table_print_dmar_entry() > The function dmar_walk_remapping_entries() references > the function __init dmar_table_print_dmar_entry(). > This is often because dmar_walk_remapping_entries lacks a __init > annotation or the annotation of dmar_table_print_dmar_entry is wrong. > > This removes the __init annotation to avoid the warning. On compilers > that don't show the warning today, this should have no impact since the > function gets inlined anyway. > > Signed-off-by: Arnd Bergmann > --- > drivers/iommu/dmar.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks.