gre/ipip: use be16 variants of netlink functions
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 6 Feb 2015 16:22:22 +0000 (17:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 00:28:06 +0000 (16:28 -0800)
commit3e97fa7059c19f7cc2566dfb30fe9282f6f1e673
tree679a7f5aa080e81e30ad07ee7bf7eeafc2adf72f
parent51a00daf7369b581e5241c5cae5924886deda261
gre/ipip: use be16 variants of netlink functions

encap.sport and encap.dport are __be16, use nla_{get,put}_be16 instead
of nla_{get,put}_u16.

Fixes the sparse warnings:

warning: incorrect type in assignment (different base types)
   expected restricted __be32 [addressable] [usertype] o_key
   got restricted __be16 [addressable] [usertype] i_flags
warning: incorrect type in assignment (different base types)
   expected restricted __be16 [usertype] sport
   got unsigned short
warning: incorrect type in assignment (different base types)
   expected restricted __be16 [usertype] dport
   got unsigned short
warning: incorrect type in argument 3 (different base types)
   expected unsigned short [unsigned] [usertype] value
   got restricted __be16 [usertype] sport
warning: incorrect type in argument 3 (different base types)
   expected unsigned short [unsigned] [usertype] value
   got restricted __be16 [usertype] dport

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv4/ipip.c