summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cisco/enic/Kconfig
diff options
context:
space:
mode:
authorEdward Cree <ecree.xilinx@gmail.com>2023-06-23 19:38:05 +0100
committerDavid S. Miller <davem@davemloft.net>2023-06-26 10:36:48 +0100
commit30c24dd87f3f4640ee3dc693230f343023227c1c (patch)
tree7b2f5804f63ad1ccc6dc81a9d2cc8f89120499e1 /drivers/net/ethernet/cisco/enic/Kconfig
parentcf60ed469629927fe43c2f4b4ef28a563d991935 (diff)
sfc: siena: 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/siena/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 <arnd@arndb.de> Signed-off-by: Edward Cree <ecree.xilinx@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/Kconfig')
0 files changed, 0 insertions, 0 deletions