diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-09-06 03:11:06 +0200 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-12-01 01:26:07 +0100 |
commit | 3f978ef36cca9bb10c88a56baec1d9d1cb072b98 (patch) | |
tree | c0aa4734ddd0f622d6c8c2fecb80cf1083ad296a /drivers/net/ethernet/sfc/selftest.c | |
parent | sfc: Fix byte order warnings for ethtool RX filter interface (diff) | |
download | linux-3f978ef36cca9bb10c88a56baec1d9d1cb072b98.tar.xz linux-3f978ef36cca9bb10c88a56baec1d9d1cb072b98.zip |
sfc: Fix byte order warning in self-test
Add necessary cast when setting a bogus checksum.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/selftest.c')
-rw-r--r-- | drivers/net/ethernet/sfc/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/selftest.c b/drivers/net/ethernet/sfc/selftest.c index ce72ae4f399f..f6651d35d615 100644 --- a/drivers/net/ethernet/sfc/selftest.c +++ b/drivers/net/ethernet/sfc/selftest.c @@ -373,7 +373,7 @@ static void efx_iterate_state(struct efx_nic *efx) /* saddr set later and used as incrementing count */ payload->ip.daddr = htonl(INADDR_LOOPBACK); payload->ip.ihl = 5; - payload->ip.check = htons(0xdead); + payload->ip.check = (__force __sum16) htons(0xdead); payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); payload->ip.version = IPVERSION; payload->ip.protocol = IPPROTO_UDP; |