diff options
| author | Geert Uytterhoeven <[email protected]> | 2021-11-02 08:24:33 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-03 01:08:58 +0000 |
| commit | 236f57fe1b8853fb3505502c0f94ae64d153ae92 (patch) | |
| tree | dafc4fa840374aa52e35e19e884fe61282694b36 /net/ipv4/tcp_output.c | |
| parent | bnxt_en: avoid newline at end of message in NL_SET_ERR_MSG_MOD (diff) | |
| download | kernel-236f57fe1b8853fb3505502c0f94ae64d153ae92.tar.gz kernel-236f57fe1b8853fb3505502c0f94ae64d153ae92.zip | |
net: marvell: prestera: Add explicit padding
On m68k:
In function ‘prestera_hw_build_tests’,
inlined from ‘prestera_hw_switch_init’ at drivers/net/ethernet/marvell/prestera/prestera_hw.c:788:2:
././include/linux/compiler_types.h:335:38: error: call to ‘__compiletime_assert_345’ declared with attribute error: BUILD_BUG_ON failed: sizeof(struct prestera_msg_switch_attr_req) != 16
...
The driver assumes structure members are naturally aligned, but does not
add explicit padding, thus breaking architectures where integral values
are not always naturally aligned (e.g. on m68k, __alignof(int) is 2, not
4).
Fixes: bb5dbf2cc64d5cfa ("net: marvell: prestera: add firmware v4.0 support")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
