diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2015-02-06 17:22:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-08 16:28:06 -0800 |
commit | 3e97fa7059c19f7cc2566dfb30fe9282f6f1e673 (patch) | |
tree | 679a7f5aa080e81e30ad07ee7bf7eeafc2adf72f /scripts | |
parent | 51a00daf7369b581e5241c5cae5924886deda261 (diff) |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions