public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] xtensa iss_net_setup() must be __init
@ 2007-10-24 16:26 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-10-24 16:26 UTC (permalink / raw)
  To: chris; +Cc: linux-kernel

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x395c): Section mismatch: reference to .init.text:__alloc_bootmem (between '__invalidate_dcache_all' and '__simc')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
4cefa581c6b3aa4a474516f8916fdad2a8fb233f 
diff --git a/arch/xtensa/platform-iss/network.c b/arch/xtensa/platform-iss/network.c
index b61fb36..506ac13 100644
--- a/arch/xtensa/platform-iss/network.c
+++ b/arch/xtensa/platform-iss/network.c
@@ -746,7 +746,7 @@ struct iss_net_init {
 
 #define ERR KERN_ERR "iss_net_setup: "
 
-static int iss_net_setup(char *str)
+static int __init iss_net_setup(char *str)
 {
 	struct iss_net_private *device = NULL;
 	struct iss_net_init *new;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-24 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 16:26 [2.6 patch] xtensa iss_net_setup() must be __init Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox