From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Kliment Yanev <Kliment.Yanev@helsinki.fi>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Nokia c110 driver
Date: Mon, 1 Mar 2004 10:17:06 -0800 [thread overview]
Message-ID: <20040301101706.3a606d35.rddunlap@osdl.org> (raw)
In-Reply-To: <40419A1C.5070103@helsinki.fi>
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
next prev parent reply other threads:[~2004-03-01 18:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 12:23 Kliment Yanev
2004-02-28 18:41 ` Randy.Dunlap
2004-02-28 18:51 ` Kliment Yanev
2004-02-29 7:51 ` Kliment Yanev
2004-03-01 18:17 ` Randy.Dunlap [this message]
2004-03-08 14:59 ` Kliment Yanev
2004-03-08 17:06 ` Randy.Dunlap
2004-03-08 22:45 ` Kliment Yanev
2004-03-08 23:09 ` Randy.Dunlap
2004-03-08 23:22 ` Kliment Yanev
2004-03-08 23:36 ` Randy.Dunlap
2004-03-09 13:26 ` Kliment Yanev
2004-03-09 16:04 ` Randy.Dunlap
2004-03-09 19:27 ` Sam Ravnborg
2004-03-09 22:07 ` Kliment Yanev
2004-03-09 22:26 ` Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040301101706.3a606d35.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=Kliment.Yanev@helsinki.fi \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®