[kernel] r10667 - in dists/trunk/linux-2.6/debian/patches: bugfix/arm series

Gordon Farquharson gordon-guest at alioth.debian.org
Wed Feb 27 06:46:26 UTC 2008


Author: gordon-guest
Date: Wed Feb 27 06:46:24 2008
New Revision: 10667

Log:
Use patch name from -mm tree.


Added:
   dists/trunk/linux-2.6/debian/patches/bugfix/arm/fix-b43-driver-build-for-arm.patch
Removed:
   dists/trunk/linux-2.6/debian/patches/bugfix/arm/pad-ssb-structure.patch
Modified:
   dists/trunk/linux-2.6/debian/patches/series/1~experimental.1

Added: dists/trunk/linux-2.6/debian/patches/bugfix/arm/fix-b43-driver-build-for-arm.patch
==============================================================================
--- (empty file)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/arm/fix-b43-driver-build-for-arm.patch	Wed Feb 27 06:46:24 2008
@@ -0,0 +1,38 @@
+From: "Gordon Farquharson" <gordonfarquharson at gmail.com>
+
+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 <gordonfarquharson at gmail.com>
+Cc: Russell King <rmk at arm.linux.org.uk>
+Acked-by: Michael Buesch <mb at bu3sch.de>
+Cc: "John W. Linville" <linville at tuxdriver.com>
+Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
+---
+
+ 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, }
+_

Modified: dists/trunk/linux-2.6/debian/patches/series/1~experimental.1
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/1~experimental.1	(original)
+++ dists/trunk/linux-2.6/debian/patches/series/1~experimental.1	Wed Feb 27 06:46:24 2008
@@ -30,5 +30,5 @@
 + bugfix/arm/disable-r6040.patch
 + features/all/at76.patch 
 + bugfix/arm/ignore-invalid-memtags.patch
-+ bugfix/arm/pad-ssb-structure.patch
++ bugfix/arm/fix-b43-driver-build-for-arm.patch
 + bugfix/fix-hifn_795X-divdi3.patch



More information about the Kernel-svn-changes mailing list