hamradio: fix dmascc section mismatch
Subsystems (2)
PATCH 1/2 hamradio: fix dmascc section mismatch
From: Randy Dunlap <[email protected]>
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 <[email protected]>
Cc Klaus Kudielka <[email protected]>
Cc Sam Ravnborg <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/hamradio/dmascc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/hamradio/dmascc.c renamed from drivers/net/hamradio/dmascc.c~hamradio-fix-dmascc-section-mismatch +2 -2
@@ -262,8 +262,8 @@ static void tm_isr(struct scc_priv *privstatic 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 */
_
From: [email protected]
Date: Mon, 04 Feb 2008 23:45:20 -0800
Quoted 11 lines
From: Randy Dunlap <[email protected]>
hw[] is used in both init and exit functions so it cannot be initdata (section mismatch is when
CONFIG_MODULES=nandCONFIG_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 <[email protected]>Cc Klaus Kudielka <[email protected]>Cc Sam Ravnborg <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.