]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: fix alignment of struct bcma_device_id
authorArnd Bergmann <arnd@arndb.de>
Fri, 5 Jul 2013 15:43:56 +0000 (17:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 18 Jul 2013 20:21:59 +0000 (16:21 -0400)
commit16948a032d4918f74f350e8235a9d7f0fe5bb1c6
tree0f43f0b64f860b342e5c7d9bb241fb5fabe59e6b
parent2592a6c8e2e2111d98d5a9b5fd23e746397a3f80
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: John W. Linville <linville@tuxdriver.com>
include/linux/mod_devicetable.h