Skip to contentSkip to conversation

2.4.21-pre6: IPMI unresolved symbols

DISCUSSION [email protected] 2 participants 2 messages Mar 27, 2003

lore
Share & tools
lore
#0 lore raw

: From: Adrian Bunk <[email protected]>

panic_notifier_list and panic_timeout are not EXPORT_SYMBOL'ed in kernel/panic.c resulting in the following unresolved symbol errors when building IPMI modular:

<-- snip -->

...

depmod: *** Unresolved symbols in /lib/modules/2.4.21-pre6/kernel/drivers/char/ipmi/ipmi_msghandler.o
depmod:         panic_notifier_list
depmod: *** Unresolved symbols in /lib/modules/2.4.21-pre6/kernel/drivers/char/ipmi/ipmi_watchdog.o
depmod:         panic_notifier_list
depmod:         panic_timeout

...

<-- snip -->

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw

On Thursday 27 March 2003 21:04, [email protected] wrote:

Hi Adrian,

Quoted 5 lines

panic_notifier_list and panic_timeout are not EXPORT_SYMBOL'ed in kernel/panic.c resulting in the following unresolved symbol errors when building IPMI modular:
<-- snip -->
...

Quoted 8 lines

depmod: *** Unresolved symbols in /lib/modules/2.4.21-pre6/kernel/drivers/char/ipmi/ipmi_msghandler.o depmod:
panic_notifier_list
depmod: *** Unresolved symbols in /lib/modules/2.4.21-pre6/kernel/drivers/char/ipmi/ipmi_watchdog.o depmod:
panic_notifier_list
depmod: panic_timeout
...

patch attached.

ciao, Marc

kernel/ksyms.c +4 -0
@@ -65,6 +65,8 @@
 extern int request_dma(unsigned int dmanr, char * deviceID);
 extern void free_dma(unsigned int dmanr);
 extern spinlock_t dma_spin_lock;
+extern int panic_timeout;
+
 
 #ifdef CONFIG_MODVERSIONS
 const struct module_symbol __export_Using_Versions
@@ -471,6 +471,8 @@
 
 /* misc */
 EXPORT_SYMBOL(panic);
+EXPORT_SYMBOL(panic_notifier_list);
+EXPORT_SYMBOL(panic_timeout);
 EXPORT_SYMBOL(__out_of_line_bug);
 EXPORT_SYMBOL(sprintf);
 EXPORT_SYMBOL(snprintf);