netfilter: reduce sparse warnings
authorFlorian Westphal <fw@strlen.de>
Thu, 27 Aug 2015 22:16:21 +0000 (00:16 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 Aug 2015 19:04:12 +0000 (21:04 +0200)
commit851345c5bbb4644911f7c351c042559a71f57d19
treefbfe6668965b9908dfae698c4e28bc4482841f17
parent98dbbfc3f1a555194e784304d930d2aafde3e2a3
netfilter: reduce sparse warnings

bridge/netfilter/ebtables.c:290:26: warning: incorrect type in assignment (different modifiers)
-> remove __pure annotation.

ipv6/netfilter/ip6t_SYNPROXY.c:240:27: warning: cast from restricted __be16
-> switch ntohs to htons and vice versa.

netfilter/core.c:391:30: warning: symbol 'nfq_ct_nat_hook' was not declared. Should it be static?
-> delete it, got removed

net/netfilter/nf_synproxy_core.c:221:48: warning: cast to restricted __be32
-> Use __be32 instead of u32.

Tested with objdiff that these changes do not affect generated code.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c
net/ipv6/netfilter/ip6t_SYNPROXY.c
net/netfilter/core.c
net/netfilter/nf_synproxy_core.c