Messages in this thread | | | Date | Mon, 1 Mar 2004 10:17:06 -0800 | From | "Randy.Dunlap" <> | Subject | Re: Nokia c110 driver |
| |
On Sun, 29 Feb 2004 09:51:56 +0200 Kliment Yanev wrote:
| -----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
This shouldn't define HZ -- or make it conditional.
| 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
'cs_error' is a function in the kernel. Rename this local one.
| /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.
All of the kernel interface functions to PCMCIA Card Services have changed in 2.6 so quite a bit of code will have to be changed here. You can ask Nokia for a 2.6 update since it is now released, or you can ask for help from the linux-wlan (or wlan-ng) project people, or you can compare a 2.4 PCMCIA kernel driver to a 2.6 PCMCIA kernel driver to see what changes are required.
-- ~Randy - 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/
| |