![]() | |||||||||||||
Messages in this thread |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Randy.Dunlap wrote: | All those errors should go away if you build the module correctly. | Please read Documentation/kbuild/m*.txt or see LWN.net article | on building modules: | http://lwn.net/Articles/21823/ Okay, using a kbuild makefile I still get tons of errors, though most of the original ones are gone: make -C /lib/modules/2.6.3-rc2-mm1/build SUBDIRS=/home/kliment/Desktop/nokia_c110/src modules make[1]: Entering directory `/usr/src/linux-2.6.3-rc2-mm1' *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies make[2]: `arch/i386/kernel/asm-offsets.s' is up to date. ~ CHK include/asm-i386/asm_offsets.h ~ CC [M] /home/kliment/Desktop/nokia_c110/src/dmodule.o In file included from /home/kliment/Desktop/nokia_c110/src/nokia_info.h:89, ~ from /home/kliment/Desktop/nokia_c110/src/dmodule.c:35: /home/kliment/Desktop/nokia_c110/src/nokia_priv.h:43:1: warning: "HZ" redefined In file included from include/linux/sched.h:4, ~ from include/linux/module.h:10, ~ from /home/kliment/Desktop/nokia_c110/src/nokia_info.h:42, ~ from /home/kliment/Desktop/nokia_c110/src/dmodule.c:35: include/asm/param.h:5:1: warning: this is the location of the previous definition /home/kliment/Desktop/nokia_c110/src/dmodule.c:57: warning: static declaration for `cs_error' follows non-static /home/kliment/Desktop/nokia_c110/src/dmodule.c: In function `cs_error': /home/kliment/Desktop/nokia_c110/src/dmodule.c:61: warning: implicit declaration of function `CardServices' /home/kliment/Desktop/nokia_c110/src/dmodule.c: In function `d_init_module': /home/kliment/Desktop/nokia_c110/src/dmodule.c:115: warning: implicit declaration of function `register_pcmcia_driver' /home/kliment/Desktop/nokia_c110/src/dmodule.c: In function `d_cleanup_module': /home/kliment/Desktop/nokia_c110/src/dmodule.c:124: warning: implicit declaration of function `unregister_pccard_driver' /home/kliment/Desktop/nokia_c110/src/dmodule.c: In function `d_driver_attach': /home/kliment/Desktop/nokia_c110/src/dmodule.c:182: error: structure has no member named `release' /home/kliment/Desktop/nokia_c110/src/dmodule.c:183: error: structure has no member named `release' /home/kliment/Desktop/nokia_c110/src/dmodule.c: In function `d_driver_event': /home/kliment/Desktop/nokia_c110/src/dmodule.c:401: error: structure has no member named `release' /home/kliment/Desktop/nokia_c110/src/dmodule.c:402: error: structure has no member named `release' /home/kliment/Desktop/nokia_c110/src/dmodule.c:407: error: structure has no member named `bus' make[2]: *** [/home/kliment/Desktop/nokia_c110/src/dmodule.o] Error 1 make[1]: *** [/home/kliment/Desktop/nokia_c110/src] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.3-rc2-mm1' make: *** [default] Error 2 Other than the param.h error, all the errors related to kernel headers are gone now. Thank you for the suggestion. However, what do I do next? I got the pci-pcmcia converter working btw. It needed its base address entered manually as well as irq scanning disabled and it would hang the machine otherwise...Therefore I can test this now if it compiles. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAQZocrPQTyNB9u9YRAtx8AKCBm+p8mSJYSDq0BO5kojTVkSTkKQCgoY+a lR6FZayR6upvyBNtLnahoUo= =WsqF -----END PGP SIGNATURE----- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 13:01 [from the cache] ©2003-2008 | |||||||||||||