Cross-compilation between e.g. i386 -> 64bit could break -> work around it
authorThomas Renninger <trenn@suse.de>
Thu, 16 Aug 2007 14:27:15 +0000 (16:27 +0200)
committerTony Luck <tony.luck@intel.com>
Fri, 17 Aug 2007 22:16:37 +0000 (15:16 -0700)
Adrian Bunk: scripts/mod/file2alias.c is compiled with HOSTCC and ensures that
kernel_ulong_t is correct, but it can't cope with different padding on
different architectures.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/linux/mod_devicetable.h

index 2ada8ee316b3b04e94ee25d3a9c1939384771c2b..4dc5fa8be781760aa307cff8d01488f270c47b9a 100644 (file)
@@ -159,7 +159,8 @@ struct ap_device_id {
 
 #define AP_DEVICE_ID_MATCH_DEVICE_TYPE         0x01
 
-#define ACPI_ID_LEN    9
+#define ACPI_ID_LEN    16 /* only 9 bytes needed here, 16 bytes are used */
+                          /* to workaround crosscompile issues */
 
 struct acpi_device_id {
        __u8 id[ACPI_ID_LEN];