mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-07 18:50:41 +00:00
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>
|
||
|---|---|---|
| .. | ||
| bitfield.h | ||
| efx.c | ||
| efx.h | ||
| enum.h | ||
| ethtool.c | ||
| falcon_boards.c | ||
| falcon.c | ||
| farch_regs.h | ||
| farch.c | ||
| filter.h | ||
| io.h | ||
| Kconfig | ||
| Makefile | ||
| mdio_10g.c | ||
| mdio_10g.h | ||
| mtd.c | ||
| net_driver.h | ||
| nic.c | ||
| nic.h | ||
| phy.h | ||
| qt202x_phy.c | ||
| rx.c | ||
| selftest.c | ||
| selftest.h | ||
| tenxpress.c | ||
| tx.c | ||
| tx.h | ||
| txc43128_phy.c | ||
| workarounds.h | ||