]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: fix a few (harmless) sparse warnings
authorFlorian Westphal <fw@strlen.de>
Mon, 21 Aug 2017 14:19:26 +0000 (16:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Aug 2017 15:42:56 +0000 (17:42 +0200)
commit5fd02ebe6537a7567f060ed36fb0dda64c5b63d8
tree72eed63f9876228e73ef3a2dfe13f44025541d7b
parentc816c2558ed45e2db522ce8400fae82be6662415
netfilter: fix a few (harmless) sparse warnings

net/netfilter/nft_payload.c:187:18: warning: incorrect type in return expression (expected bool got restricted __sum16 [usertype] check)
net/netfilter/nft_exthdr.c:222:14: warning: cast to restricted __be32
net/netfilter/nft_rt.c:49:23: warning: incorrect type in assignment (different base types expected unsigned int got restricted __be32)
net/netfilter/nft_rt.c:70:25: warning: symbol 'nft_rt_policy' was not declared. Should it be static?

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_exthdr.c
net/netfilter/nft_payload.c
net/netfilter/nft_rt.c