ipv4: fix route mark sparse warning
Subsystems (3)
PATCH 1/1 ipv4: fix route mark sparse warning
Sparse complains about RTA_MARK which is should be host order according to include file and usage in iproute.
net/ipv4/route.c:2223:46: warning: incorrect type in argument 3 (different base types)net/ipv4/route.c:2223:46: expected restricted __be32 [usertype] valuenet/ipv4/route.c:2223:46: got unsigned int [unsigned] [usertype] flowic_mark
net/ipv4/route.c +1 -1
@@ -2220,7 +2220,7 @@ static int rt_fill_info(struct net *net, goto nla_put_failure;if (fl4->flowi4_mark && -nla_put_be32 (skb,RTA_MARK , fl4->flowi4_mark)) +nla_put_u32 (skb,RTA_MARK , fl4->flowi4_mark)) goto nla_put_failure; error = rt->dst.error;
From: Stephen Hemminger <[email protected]>
Date: Wed, 10 Oct 2012 11:27:25 -0700
Quoted 8 lines
Sparse complains about
RTA_MARKwhich is should be host order according to include file and usage in iproute.
net/ipv4/route.c:2223:46: warning: incorrect type in argument 3 (different base types)net/ipv4/route.c:2223:46: expected restricted__be32[usertype] valuenet/ipv4/route.c:2223:46: got unsigned int [unsigned] [usertype]flowic_markSigned-off-by Stephen Hemminger <[email protected]>
Applied.