[2.6 patch] xtensa iss_net_setup() must be __init

From: Adrian Bunk
Date: Wed Oct 24 2007 - 12:47:32 EST


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@xxxxxxxxxx>

---
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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/