Skip to contentSkip to conversation

input/serio/hp_sdc.c section fix

PATCH Applied Adrian Bunk 2 participants 2 messages Oct 24, 2007 – Oct 28, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input/serio/hp_sdc.c section fix

hp_sdc_exit() mustn't be __exit since it's called from the __init hp_sdc_register().

This patch fixes the following section mismatch:

<-- snip -->

...
MODPOST vmlinux.o
...
WARNING: vmlinux.o(.init.text+0x1af68): Section mismatch: reference to .exit.text:hp_sdc_exit (between 'hp_sdc_register' and 'hp_sdc_mlc_init')
...

<-- snip -->

---
4022ed345d1b61dc5b6ac0fc35877656e444a11d

drivers/input/serio/hp_sdc.c +0 -4
index 6af1998..02b3ad8 100644
@@ -944,11 +944,7 @@ static int __init hp_sdc_init_hppa(struct parisc_device *d)
 
 #endif /* __hppa__ */
 
-#if !defined(__mc68000__) /* Link error on m68k! */
-static void __exit hp_sdc_exit(void)
-#else
 static void hp_sdc_exit(void)
-#endif
 {
 	write_lock_irq(&hp_sdc.lock);
 
#1 lore raw
Quoted 3 lines · Adrian Bunk

hp_sdc_exit() mustn't be __exit since it's called from the __init hp_sdc_register().

Applied, thank you Adrian.

Signature · 1 line
Dmitry