All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kliment Yanev <Kliment.Yanev@helsinki.fi>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Nokia c110 driver
Date: Sun, 29 Feb 2004 09:51:56 +0200	[thread overview]
Message-ID: <40419A1C.5070103@helsinki.fi> (raw)
In-Reply-To: <20040228104105.5a699d32.rddunlap@osdl.org>

-----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-----

  parent reply	other threads:[~2004-02-29  7:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-28 12:23 Nokia c110 driver Kliment Yanev
2004-02-28 18:41 ` Randy.Dunlap
2004-02-28 18:51   ` Kliment Yanev
2004-02-29  7:51   ` Kliment Yanev [this message]
2004-03-01 18:17     ` Randy.Dunlap
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=40419A1C.5070103@helsinki.fi \
    --to=kliment.yanev@helsinki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rddunlap@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.