mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cb903bf4ee
commit
0eae88f31c
17 changed files with 65 additions and 61 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue