The patch titled
     Fix b43 driver build for arm
has been added to the -mm tree.  Its filename is
     fix-b43-driver-build-for-arm.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: Fix b43 driver build for arm
From: "Gordon Farquharson" <[EMAIL PROTECTED]>

Align the members of the SSB device structure to a 32 bit boundary so that
the b43 driver can be built for arm using a cross compiler.  This alignment
is required so that the test in scripts/mod/file2alias.c that checks that
the size of the device ID type against the size of the section in the
object file succeeds (see comment and http://lkml.org/lkml/2008/2/18/481
for explanation).

Signed-off-by: Gordon Farquharson <[EMAIL PROTECTED]>
Cc: Russell King <[EMAIL PROTECTED]>
Acked-by: Michael Buesch <[EMAIL PROTECTED]>
Cc: "John W. Linville" <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 include/linux/mod_devicetable.h |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff -puN include/linux/mod_devicetable.h~fix-b43-driver-build-for-arm 
include/linux/mod_devicetable.h
--- a/include/linux/mod_devicetable.h~fix-b43-driver-build-for-arm
+++ a/include/linux/mod_devicetable.h
@@ -351,7 +351,13 @@ struct sdio_device_id {
 struct ssb_device_id {
        __u16   vendor;
        __u16   coreid;
-       __u8    revision;
+       /* Explicit padding to support a broken sanity check in file2alias.c.
+        * The check compares the size of the structure in the kernel
+        * object file to the size of the structure reported in userspace for
+        * the system on which the kernel is compiled. The check breaks on
+        * cross-compilation, and the padding is a workaround for this. */
+       __u8    revision
+               __attribute__((aligned(sizeof(__u32))));
 };
 #define SSB_DEVICE(_vendor, _coreid, _revision)  \
        { .vendor = _vendor, .coreid = _coreid, .revision = _revision, }
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

fix-b43-driver-build-for-arm.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to