From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Date: Thu, 02 Aug 2007 16:36:14 +0000 Subject: Re: scripts/mod/file2alias.c cross compile problem Message-Id: List-Id: References: <617E1C2C70743745A92448908E030B2A0211AFF0@scsmsx411.amr.corp.intel.com> In-Reply-To: <617E1C2C70743745A92448908E030B2A0211AFF0@scsmsx411.amr.corp.intel.com> (Tony Luck's message of "Thu\, 2 Aug 2007 09\:25\:58 -0700") MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: "Luck, Tony" Cc: trenn@suse.de, Adrian Bunk , Sam Ravnborg , Jan Dittmer , Len Brown , Linus Torvalds , Andrew Morton , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org "Luck, Tony" writes: >> +#define FILLUP_LEN 7 /* dirty fix for i386 -> 64bit cross-compilation */ >> =20 >> struct acpi_device_id { >> __u8 id[ACPI_ID_LEN]; >> + __u8 dummy[FILLUP_LEN]; >> kernel_ulong_t driver_data; >> }; > > What's so special about this structure that we get an error? It's special because it's a device_id structure, and those structures must come out identical using either the host or the target compiler. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."