diff options
| author | Sabrina Dubroca <[email protected]> | 2015-02-06 16:22:22 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-02-09 00:28:06 +0000 |
| commit | 3e97fa7059c19f7cc2566dfb30fe9282f6f1e673 (patch) | |
| tree | 679a7f5aa080e81e30ad07ee7bf7eeafc2adf72f /net/tipc/sysctl.c | |
| parent | tipc: fix bug in socket reception function (diff) | |
| download | kernel-3e97fa7059c19f7cc2566dfb30fe9282f6f1e673.tar.gz kernel-3e97fa7059c19f7cc2566dfb30fe9282f6f1e673.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/sysctl.c')
0 files changed, 0 insertions, 0 deletions
