undefined symbols of modules

2006-05-30 Thread Josef Angermeier
Hello,

when i try to compile my kernel extension as modul, i get some undefined 
references. But a look in System.map shows, that the relevant symbols 
are defined in the main kernel. Why then those undefined references ?

Any hint is appreciated!
bye

Josef

make ARCH=ppc -C linux modules
make[1]: Entering directory `/scratch-local/esm/linux'
  CHK include/linux/version.h
  Building modules, stage 2.
  MODPOST
*** Warning: cpm_load_patch [drivers/usb/host/m82xx-hcd.ko] undefined!
*** Warning: cpmp [drivers/usb/host/m82xx-hcd.ko] undefined!




undefined symbols of modules

2006-05-30 Thread Eugene Surovegin
On Tue, May 30, 2006 at 09:45:46AM +0200, Josef Angermeier wrote:
 Hello,
 
 when i try to compile my kernel extension as modul, i get some undefined 
 references. But a look in System.map shows, that the relevant symbols 
 are defined in the main kernel. Why then those undefined references ?

Symbol must be exported to be available for modules, just being listed 
in System.map isn't enough.

Try adding EXPORT_SYMBOL(...) for those undefined references.

-- 
Eugene