diff options
author | Edward Cree <ecree.xilinx@gmail.com> | 2023-06-23 19:38:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-06-26 10:36:48 +0100 |
commit | 1186c6b31ee14fa1e83f5a94be0daa9bc99f9b30 (patch) | |
tree | 44fbe8c85414c887dc2bd65546b806aa08b50b89 /net/unix/af_unix.c | |
parent | 30c24dd87f3f4640ee3dc693230f343023227c1c (diff) | |
download | linux-1186c6b31ee14fa1e83f5a94be0daa9bc99f9b30.tar.gz linux-1186c6b31ee14fa1e83f5a94be0daa9bc99f9b30.tar.bz2 linux-1186c6b31ee14fa1e83f5a94be0daa9bc99f9b30.zip |
sfc: falcon: use padding to fix alignment in loopback test
Add two bytes of padding to the start of struct ef4_loopback_payload,
which are not sent on the wire. This ensures the 'ip' member is
4-byte aligned, preventing the following W=1 warning:
net/ethernet/sfc/falcon/selftest.c:43:15: error: field ip within 'struct ef4_loopback_payload' is less aligned than 'struct iphdr' and is usually due to 'struct ef4_loopback_payload' being packed, which can lead to unaligned accesses [-Werror,-Wunaligned-access]
struct iphdr ip;
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions