Skip to content

Commit

Permalink
Cross-compilation between e.g. i386 -> 64bit could break -> work arou…
Browse files Browse the repository at this point in the history
…nd it

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>
  • Loading branch information
Thomas Renninger authored and Tony Luck committed Aug 17, 2007
1 parent 471e7a4 commit 1181420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/mod_devicetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1181420

Please sign in to comment.