[2.6 patch] drivers/net/hamradio/dmascc.c: fix section mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dev_setup() is using the __initdata variables ax25_broadcast and 
ax25_test.

Since the only caller of dev_setup() (setup_adapter()) is already 
__init, the solution is to make dev_setup() __init, too.

Signed-off-by: Adrian Bunk <[email protected]>

--- linux-2.6.17-mm2-full/drivers/net/hamradio/dmascc.c.old	2006-06-26 01:56:37.000000000 +0200
+++ linux-2.6.17-mm2-full/drivers/net/hamradio/dmascc.c	2006-06-26 01:56:55.000000000 +0200
@@ -436,7 +436,7 @@
 module_init(dmascc_init);
 module_exit(dmascc_exit);
 
-static void dev_setup(struct net_device *dev)
+static void __init dev_setup(struct net_device *dev)
 {
 	dev->type = ARPHRD_AX25;
 	dev->hard_header_len = AX25_MAX_HEADER_LEN;

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux