[ltp] slmdm and kernel 2.6.0
Lord Yupa
linux-thinkpad@linux-thinkpad.org
Thu, 28 Aug 2003 00:36:14 +0200
I'm very happy after compiling slmdm module for my t40 modem... (thanks
to bellet http://bellet.info/~bellet/laptop/t40.html !!!).
I've tried to compile it with a 2.6.0-test4 kernel, but it fails with
this error output:
gcc -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB
-I. -I/usr/src/linux/include -DMODVERSIONS --include
/usr/src/linux/include/linux/modversions.h -o amrmo_init.o -c
amrmo_init.c
<command line>:137860471:38272:
/usr/src/linux/include/linux/modversions.h: No such file or directory
amrmo_init.c: In function `amr_mod_usage_increase':
amrmo_init.c:241: warning: `MOD_INC_USE_COUNT' is deprecated (declared
at /usr/src/linux/include/linux/module.h:482)
amrmo_init.c: In function `amr_mod_usage_decrease':
amrmo_init.c:245: warning: `MOD_DEC_USE_COUNT' is deprecated (declared
at /usr/src/linux/include/linux/module.h:494)
amrmo_init.c: In function `amrmo_probe':
amrmo_init.c:273: structure has no member named `name'
amrmo_init.c:324: warning: implicit declaration of function
`request_irq'
amrmo_init.c: In function `amrmo_remove':
amrmo_init.c:344: warning: implicit declaration of function `free_irq'
amrmo_init.c: In function `amrmo_init':
amrmo_init.c:378: warning: implicit declaration of function
`pci_present'
amrmo_init.c:385: warning: implicit declaration of function
`pci_for_each_dev'
amrmo_init.c:385: syntax error before '{' token
amrmo_init.c: At top level:
amrmo_init.c:395: syntax error before '}' token
amrmo_init.c:413: warning: type defaults to `int' in declaration of
`EXPORT_NO_SYMBOLS'
amrmo_init.c:413: warning: data definition has no type or storage class
make: *** [amrmo_init.o] Error 1
It seems it needs .../include/linux/modversions.h but if i didn't
misunderstand it was removed by kernel 2.6.0 source...
Any of you experienced a similar problem and can help me?
Thanks in advance
Lord Yupa