I've compiled to Ubuntu Feisty and get the same error. The ubuntu kernel to Feisty don't have the file config.h and I find the to Dapper: /* config.h */ #ifndef _LINUX_CONFIG_H #define _LINUX_CONFIG_H /* This file is no longer in use and kept only for backward compatibility. * autoconf.h is now included via -imacros on the commandline */ #include <linux/autoconf.h> #endif /*****************************/ And assume who is obsolete to more recent kernels. So I change config.h to autoconf.h and compile the module. And I get the error don't find the function: INIT_WORK(x_tqueue, wrap_LXHardwareBottomHalf, data); And I comment that. I get others erros :) I think is needed to updata the code to new kernel :) But I copy the vmlinuz and /lib/modules/* from Dapper to /boot and /lib/modules of Feisty and update the grub. Now I select Dapper Kernel to Internet and Feisty Kernel to others tasks. :)
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/desktop/Desktop/agrsmsss modules make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.20-16-generic' CC [M] /home/desktop/Desktop/agrsmsss/agrsoftmodem.o /home/desktop/Desktop/agrsmsss/agrsoftmodem.c: In function ‘SetAgrModemInterface’: /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:106: warning: implicit declaration of function ‘inter_module_get_request’ /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:106: warning: assignment makes pointer from integer without a cast /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:109: warning: implicit declaration of function ‘inter_module_put’ /home/desktop/Desktop/agrsmsss/agrsoftmodem.c: In function ‘modem_init_module’: /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:139: warning: implicit declaration of function ‘inter_module_register’ /home/desktop/Desktop/agrsmsss/agrsoftmodem.c: In function ‘modem_cleanup_module’: /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:151: warning: implicit declaration of function ‘inter_module_unregister’ /home/desktop/Desktop/agrsmsss/agrsoftmodem.c: In function ‘x_request_irq’: /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:226: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:370:53: error: macro "INIT_WORK" passed 3 arguments, but takes just 2 /home/desktop/Desktop/agrsmsss/agrsoftmodem.c: In function ‘x_task_queue_init’: /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:370: error: ‘INIT_WORK’ undeclared (first use in this function) /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:370: error: (Each undeclared identifier is reported only once /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:370: error: for each function it appears in.) /home/desktop/Desktop/agrsmsss/agrsoftmodem.c:369: warning: unused variable ‘x_tqueue’ make[2]: ** [/home/desktop/Desktop/agrsmsss/agrsoftmodem.o] Erro 1 make[1]: ** [_module_/home/desktop/Desktop/agrsmsss] Erro 2 make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.20-16-generic' make: ** [module] Erro 2