]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ssb: fix alignment of struct bcma_device_id
authorArnd Bergmann <arnd@arndb.de>
Thu, 18 Jul 2013 23:56:40 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:40 +0000 (09:56 +1000)
commit358f9aa1fcfc6977d6e8da1fe0e37ec44a428597
tree907b2870fddf478030910d13f43af271ab43a743
parent7041f1bc7480366d407640e5a5ff12aeec5bf49b
ssb: fix alignment of struct bcma_device_id

The ARM OABI and EABI disagree on the alignment of structures with small
members, so module init tools may interpret the ssb device table
incorrectly, as shown by this warning when building the b43 device driver
in an OABI kernel:

FATAL: drivers/net/wireless/b43/b43: sizeof(struct ssb_device_id)=6 is not
a modulo of the size of section __mod_ssb_device_table=88.

Forcing the default (EABI) alignment on the structure makes this problem
go away.  Since the ssb_device_id may have the same problem, better fix
both structures.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Michael Buesch <mb@bu3sch.de>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mod_devicetable.h