linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-next] FATAL: drivers/gpu/drm/udl/udl: sizeof(struct usb_device_id)=24 is not a modulo of the size of section __mod_usb_device_table=44.
@ 2012-06-15 17:42 Geert Uytterhoeven
  2012-06-15 20:10 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2012-06-15 17:42 UTC (permalink / raw)
  To: Bjørn Mork, Greg Kroah-Hartman
  Cc: USB list, linux-kernel, Linux-Next, linux-kbuild, Linux/m68k

commit 81df2d594340dcb6d1a02191976be88a1ca8120c ("USB: allow match
on bInterfaceNumber") added a byte to the interior of struct usb_device_id,
enabling implicit padding:

--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -115,6 +118,9 @@ struct usb_device_id {
        __u8            bInterfaceSubClass;
        __u8            bInterfaceProtocol;

+       /* Used for vendor-specific interface matches */
+       __u8            bInterfaceNumber;
+
        /* not matched against */
        kernel_ulong_t  driver_info;
 };

On m68k, this causes failures like:

| FATAL: drivers/gpu/drm/udl/udl: sizeof(struct usb_device_id)=24 is
not a modulo of the size of section __mod_usb_device_table=44.
| Fix definition of struct usb_device_id in mod_devicetable.h

M68k is special in that it uses 2 for the alignment of 32-bit entities, hence
sizeof(struct usb_device_id) = 22.

However, when cross-compiling on amd64, sizeof(struct usb_device_id) = 24
in scripts/mod/file2alias.c.

m68k/allmodconfig at http://kisskb.ellerman.id.au/kisskb/buildresult/6518563/

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2012-06-26 13:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-15 17:42 [-next] FATAL: drivers/gpu/drm/udl/udl: sizeof(struct usb_device_id)=24 is not a modulo of the size of section __mod_usb_device_table=44 Geert Uytterhoeven
2012-06-15 20:10 ` Greg Kroah-Hartman
     [not found]   ` <20120615201021.GB14544-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2012-06-15 21:02     ` Geert Uytterhoeven
2012-06-15 23:12       ` Greg Kroah-Hartman
2012-06-16 13:23         ` Bjørn Mork
2012-06-16 15:43           ` Andreas Schwab
2012-06-17 14:00             ` Bjørn Mork
2012-06-17 15:42               ` Andreas Schwab
2012-06-25 12:22               ` [PATCH] mod/file2alias: make modalias generation safe for cross compiling Andreas Schwab
     [not found]                 ` <m2d34n1sz9.fsf_-_-hBGjKatGTSWzQB+pC5nmwQ@public.gmane.org>
2012-06-25 20:32                   ` Geert Uytterhoeven
     [not found]                     ` <alpine.DEB.2.00.1206252217580.21346-97SZ98TBZzA1xEWliksxXw@public.gmane.org>
2012-06-25 21:43                       ` Andreas Schwab
2012-06-26  5:00                 ` Sam Ravnborg
2012-06-26 13:27                   ` [PATCH v2] " Andreas Schwab
2012-06-16 18:33           ` [-next] FATAL: drivers/gpu/drm/udl/udl: sizeof(struct usb_device_id)=24 is not a modulo of the size of section __mod_usb_device_table=44 Philippe De Muyter
2012-06-16 19:11           ` Greg Kroah-Hartman
2012-06-16 19:30             ` Geert Uytterhoeven
2012-06-16 18:51         ` Geert Uytterhoeven

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