From: Larry Finger <Larry.Finger@lwfinger.net>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
wireless <linux-wireless@vger.kernel.org>
Subject: Re: Strange build error with new driver on 2.6.39-rc3
Date: Fri, 15 Apr 2011 18:56:44 -0500 [thread overview]
Message-ID: <4DA8DB3C.3060800@lwfinger.net> (raw)
In-Reply-To: <4DA8C0DD.8090003@lwfinger.net>
On 04/15/2011 05:04 PM, Larry Finger wrote:
> When building a new driver on kernel 2.6.39-rc3 when using a 32-bit system, I
> get the following error:
>
> MODPOST 511 modules
> FATAL: drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se: sizeof(struct
> usb_device_id)=20 is not a modulo of the size of section
> __mod_usb_device_table=168.
> Fix definition of struct usb_device_id in mod_devicetable.h
>
> This error is strange in that this device is PCI based and contains no mention
> of usb_device_id. There is a USB-based driver in the rtlwifi tree, but there is
> also another PCI driver and it does not get this error.
I found the problem. It was a faulty MODULE_DEVICE_TABLE macro statement.
Larry
prev parent reply other threads:[~2011-04-15 23:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 22:04 Strange build error with new driver on 2.6.39-rc3 Larry Finger
2011-04-15 23:56 ` Larry Finger [this message]
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=4DA8DB3C.3060800@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@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;
as well as URLs for NNTP newsgroup(s).