aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_payload.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-08-21 16:19:26 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-08-28 17:42:56 +0200
commit5fd02ebe6537a7567f060ed36fb0dda64c5b63d8 (patch)
tree72eed63f9876228e73ef3a2dfe13f44025541d7b /net/netfilter/nft_payload.c
parentnetfilter: ebtables: fix indent on if statements (diff)
downloadlinux-dev-5fd02ebe6537a7567f060ed36fb0dda64c5b63d8.tar.xz
linux-dev-5fd02ebe6537a7567f060ed36fb0dda64c5b63d8.zip
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>
Diffstat (limited to 'net/netfilter/nft_payload.c')
-rw-r--r--net/netfilter/nft_payload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_payload.c b/net/netfilter/nft_payload.c
index 7d699bbd45b0..e110b0ebbf58 100644
--- a/net/netfilter/nft_payload.c
+++ b/net/netfilter/nft_payload.c
@@ -184,7 +184,7 @@ static bool nft_payload_udp_checksum(struct sk_buff *skb, unsigned int thoff)
if (!uh)
return false;
- return uh->check;
+ return (__force bool)uh->check;
}
static int nft_payload_l4csum_offset(const struct nft_pktinfo *pkt,