Netdev List
 help / color / mirror / Atom feed
* [PATCH] hamradio: fix dmascc section mismatch
@ 2008-01-26  0:35 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-01-26  0:35 UTC (permalink / raw)
  To: netdev; +Cc: davem, klaus.kudielka, akpm, samr

From: Randy Dunlap <randy.dunlap@oracle.com>

cc: Klaus Kudielka <klaus.kudielka@gmx.net>

hw[] is used in both init and exit functions so it cannot be initdata
(section mismatch is when CONFIG_MODULES=n and CONFIG_DMASCC=y).

WARNING: vmlinux.o(.exit.text+0xba7): Section mismatch: reference to .init.data: (between 'dmascc_exit' and 'sixpack_exit_driver')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/net/hamradio/dmascc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2624-bld.orig/drivers/net/hamradio/dmascc.c
+++ linux-2624-bld/drivers/net/hamradio/dmascc.c
@@ -262,8 +262,8 @@ static void tm_isr(struct scc_priv *priv
 
 static int io[MAX_NUM_DEVS] __initdata = { 0, };
 
-/* Beware! hw[] is also used in cleanup_module(). */
-static struct scc_hardware hw[NUM_TYPES] __initdata_or_module = HARDWARE;
+/* Beware! hw[] is also used in dmascc_exit(). */
+static struct scc_hardware hw[NUM_TYPES] = HARDWARE;
 
 
 /* Global variables */

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

only message in thread, other threads:[~2008-01-26  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-26  0:35 [PATCH] hamradio: fix dmascc section mismatch Randy Dunlap

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