Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760167Ab2FHCHP (ORCPT ); Thu, 7 Jun 2012 22:07:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36769 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759900Ab2FHCHN (ORCPT ); Thu, 7 Jun 2012 22:07:13 -0400 Date: Thu, 7 Jun 2012 22:06:54 -0400 From: Don Zickus To: Sam Ravnborg Cc: Jan Beulich , x86@kernel.org, LKML Subject: Re: [PATCH] x86,nmi: Fix section mismatch warnings on 32-bit Message-ID: <20120608020654.GA18530@redhat.com> References: <1338839763-11140-1-git-send-email-dzickus@redhat.com> <4FCDDB7D0200007800088390@nat28.tlf.novell.com> <20120605144734.GU32472@redhat.com> <20120605161318.GA29751@merkur.ravnborg.org> <4FCE4D800200007800088546@nat28.tlf.novell.com> <20120605172208.GA29862@merkur.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120605172208.GA29862@merkur.ravnborg.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 33 On Tue, Jun 05, 2012 at 07:22:08PM +0200, Sam Ravnborg wrote: > > >> I do not know enough about behind the scene compiler magic to track this > > >> down correctly. So any insight/help is greatly appreciated. :-) > > > > > > We register a function annotated __init. And the normal use of this > > > register() > > > is for functions that survive the init phase. > > > So drop the __init annotation on the function we register and the mismatch > > > is fixed. > > > > But in the case here the function really is being used at init time > > only. > This is only for testing. Ando nly if CONFIG_DEBUG_NMI_SELFTEST is set. Hi Sam, Sorry for ignoring your responses before. Somehow your emails were not hitting my inbox for some reason, but I found them in my lkml folder. So I am confused on the right way to fix this. Sam is saying drop the __init and Jan is suggesting add __initdata for these two special cases. Anyone want to break the tie? :-) Cheers, Don -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/