Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757639AbXELG2R (ORCPT ); Sat, 12 May 2007 02:28:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754538AbXELG2I (ORCPT ); Sat, 12 May 2007 02:28:08 -0400 Received: from pasmtpa.tele.dk ([80.160.77.114]:60727 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751696AbXELG2H (ORCPT ); Sat, 12 May 2007 02:28:07 -0400 Date: Sat, 12 May 2007 08:29:01 +0200 From: Sam Ravnborg To: Kumar Gala Cc: LKML Subject: Re: [RFC PATCH] kbuild: silence section mismatch warnings Message-ID: <20070512062901.GB4073@uranus.ravnborg.org> References: <20070511210850.GA382@uranus.ravnborg.org> <8210B049-55BD-409F-8A5E-EC5E1C365604@kernel.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8210B049-55BD-409F-8A5E-EC5E1C365604@kernel.crashing.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2017 Lines: 52 On Fri, May 11, 2007 at 04:22:28PM -0500, Kumar Gala wrote: > > On May 11, 2007, at 4:08 PM, Sam Ravnborg wrote: > > >----- Forwarded message from Sam Ravnborg ----- > > > >Forgot lkml in first mail... > > > > Sam > > > >Subject: [RFC PATCH] kbuild: silence section mismatch warnings > >From: Sam Ravnborg > >Date: Fri, 11 May 2007 23:03:46 +0200 > >User-Agent: Mutt/1.4.2.1i > >To: Chris Wedgwood , Andrew Morton , > > "David S. Miller" , > > Russell King , > > Satyam Sharma > >Cc: sam@ravnborg.org > > > >Following patch allow us in specific places to silence section > >mismatch warnings. > >There is a few legitime places that modpost does not yet recognize > >where > >reference from .text to .init.text (likewise for data) are legitime. > >This allow us to spot the few places and annotate them so we do not > >get false warnings that in the end will let real warnings pass. > > > >The annotation is simple to grep for so revieing all uses in a few > >months time are trivial. It is assumed that a few places will > >use this to shut up the warning as replacement for the real fix. > >But these cases are esay to spot and to fix up. > > Its unclear if you expect that some things will be tagged > __init_refok/__initdata_refok forever or if we'll find some way to > fix/change the code so the things tagged no longer need it. A few places will need the __init_refok tag forever. But as Satyam points out it will likely be misused. So the __init_refok is introduced to stay. akpm pointed out in private mail that I need to update the linker scripts too - and running out of time this weekend so that will be later. Sam - 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/