* [2.6 patch] spi.c:scan_boardinfo() mustn't be __init_or_module
@ 2007-07-10 12:44 Adrian Bunk
[not found] ` <20070710124442.GV3492-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-07-10 12:44 UTC (permalink / raw)
To: dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
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 <bunk-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org>
---
--- 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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] spi.c:scan_boardinfo() mustn't be __init_or_module
[not found] ` <20070710124442.GV3492-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org>
@ 2007-07-10 16:54 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2007-07-10 16:54 UTC (permalink / raw)
To: Adrian Bunk
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
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 <bunk-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org>
Acked-by: David Brownell <dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>
> ---
> --- 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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-10 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-10 12:44 [2.6 patch] spi.c:scan_boardinfo() mustn't be __init_or_module Adrian Bunk
[not found] ` <20070710124442.GV3492-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org>
2007-07-10 16:54 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).