net: Fix various endianness glitches
Sparse can help us find endianness bugs, but we need to make some cleanups to be able to more easily spot real bugs. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cb903bf4ee
commit
0eae88f31c
@@ -136,7 +136,7 @@ int eth_rebuild_header(struct sk_buff *skb)
|
||||
default:
|
||||
printk(KERN_DEBUG
|
||||
"%s: unable to resolve type %X addresses.\n",
|
||||
dev->name, (int)eth->h_proto);
|
||||
dev->name, (__force int)eth->h_proto);
|
||||
|
||||
memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user