From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbdISJp3 (ORCPT ); Tue, 19 Sep 2017 05:45:29 -0400 Received: from 8bytes.org ([81.169.241.247]:46928 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751839AbdISJp1 (ORCPT ); Tue, 19 Sep 2017 05:45:27 -0400 Date: Tue, 19 Sep 2017 11:45:24 +0200 From: Joerg Roedel To: Arnd Bergmann Cc: Andy Shevchenko , "Rafael J. Wysocki" , Jani Nikula , Jarkko Sakkinen , Lv Zheng , Ashok Raj , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu: dmar: fix harmless section mismatch warning 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-Disposition: inline In-Reply-To: <20170912201032.3661566-1-arnd@arndb.de> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.