[NET]: Endian-annotate struct iphdr
And fix trivial warnings that emerged. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5f8ac64b15
commit
76ab608d86
@ -383,7 +383,7 @@ out_nomem:
|
||||
*/
|
||||
static inline struct ipq *ip_find(struct iphdr *iph, u32 user)
|
||||
{
|
||||
__u16 id = iph->id;
|
||||
__be16 id = iph->id;
|
||||
__u32 saddr = iph->saddr;
|
||||
__u32 daddr = iph->daddr;
|
||||
__u8 protocol = iph->protocol;
|
||||
|
Reference in New Issue
Block a user