aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEdward Cree <[email protected]>2023-06-23 18:38:04 +0000
committerDavid S. Miller <[email protected]>2023-06-26 09:36:48 +0000
commitcf60ed469629927fe43c2f4b4ef28a563d991935 (patch)
treeedd09b5a926943ef4efe2bdcd5cad4d8c59e9cb9 /net/unix/af_unix.c
parentMerge branch 'splice-net-switch-over-users-of-sendpage-and-remove-it' (diff)
downloadkernel-cf60ed469629927fe43c2f4b4ef28a563d991935.tar.gz
kernel-cf60ed469629927fe43c2f4b4ef28a563d991935.zip
sfc: use padding to fix alignment in loopback test
Add two bytes of padding to the start of struct efx_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/selftest.c:46:15: error: field ip within 'struct efx_loopback_payload' is less aligned than 'struct iphdr' and is usually due to 'struct efx_loopback_payload' being packed, which can lead to unaligned accesses [-Werror,-Wunaligned-access] struct iphdr ip; Reported-by: Arnd Bergmann <[email protected]> Signed-off-by: Edward Cree <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions