aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/selftest.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-09-05 21:11:06 -0400
committerBen Hutchings <bhutchings@solarflare.com>2012-11-30 19:26:07 -0500
commit3f978ef36cca9bb10c88a56baec1d9d1cb072b98 (patch)
treec0aa4734ddd0f622d6c8c2fecb80cf1083ad296a /drivers/net/ethernet/sfc/selftest.c
parent0e0c3408a5414d4e1f8ca7fadcb513c13bd747e8 (diff)
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.c2
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)
373 /* saddr set later and used as incrementing count */ 373 /* saddr set later and used as incrementing count */
374 payload->ip.daddr = htonl(INADDR_LOOPBACK); 374 payload->ip.daddr = htonl(INADDR_LOOPBACK);
375 payload->ip.ihl = 5; 375 payload->ip.ihl = 5;
376 payload->ip.check = htons(0xdead); 376 payload->ip.check = (__force __sum16) htons(0xdead);
377 payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); 377 payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr));
378 payload->ip.version = IPVERSION; 378 payload->ip.version = IPVERSION;
379 payload->ip.protocol = IPPROTO_UDP; 379 payload->ip.protocol = IPPROTO_UDP;