* [2.6 patch] drivers/net/hamradio/dmascc.c: fix section mismatch
@ 2006-06-26 10:31 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-06-26 10:31 UTC (permalink / raw)
To: jgarzik; +Cc: netdev, linux-kernel
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 <bunk@stusta.de>
--- 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-26 10:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26 10:31 [2.6 patch] drivers/net/hamradio/dmascc.c: fix section mismatch Adrian Bunk
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).