From: David Brownell Subject: Re: [2.6 patch] spi.c:scan_boardinfo() mustn't be __init_or_module Date: Tue, 10 Jul 2007 09:54:36 -0700 Message-ID: <200707100954.37027.david-b@pacbell.net> References: <20070710124442.GV3492@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Adrian Bunk Return-path: In-Reply-To: <20070710124442.GV3492-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Tuesday 10 July 2007, Adrian Bunk wrote: > This patch fixes the following section mismatch: > > <-- snip --> > > ... > MODPOST vmlinux > WARNING: drivers/built-in.o(.text+0x889735): Section mismatch: reference to .init.text:scan_boardinfo (between 'spi_register_master' and '__unregister') > ... > > <-- snip --> > > Signed-off-by: Adrian Bunk Acked-by: David Brownell > > --- > --- linux-2.6.22-rc6-mm1/drivers/spi/spi.c.old 2007-07-10 04:17:26.000000000 +0200 > +++ linux-2.6.22-rc6-mm1/drivers/spi/spi.c 2007-07-10 04:18:01.000000000 +0200 > @@ -302,8 +302,7 @@ > * creates board info from kernel command lines > */ > > -static void __init_or_module > -scan_boardinfo(struct spi_master *master) > +static void scan_boardinfo(struct spi_master *master) > { > struct boardinfo *bi; > struct device *dev = master->cdev.dev; > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/