linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Strange build error with new driver on 2.6.39-rc3
@ 2011-04-15 22:04 Larry Finger
  2011-04-15 23:56 ` Larry Finger
  0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2011-04-15 22:04 UTC (permalink / raw)
  To: LKML, wireless

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.

Thanks,

Larry

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Strange build error with new driver on 2.6.39-rc3
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Finger @ 2011-04-15 23:56 UTC (permalink / raw)
  To: Larry Finger; +Cc: LKML, wireless

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-15 23:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).