diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-10-10 04:27:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-10 22:54:59 -0400 |
commit | 68aaed54e7682aef261d5c2cf99e85a9dbf33a84 (patch) | |
tree | d71ae8f7296be4bc370174829ed2438c14a469c4 /net | |
parent | 6a8ed462f16b8455eec5ae00eb6014159a6721f0 (diff) |
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] value
net/ipv4/route.c:2223:46: got unsigned int [unsigned] [usertype] flowic_mark
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 1a0da8dc8180..432f4bb77238 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2220,7 +2220,7 @@ static int rt_fill_info(struct net *net, __be32 dst, __be32 src, | |||
2220 | goto nla_put_failure; | 2220 | goto nla_put_failure; |
2221 | 2221 | ||
2222 | if (fl4->flowi4_mark && | 2222 | if (fl4->flowi4_mark && |
2223 | nla_put_be32(skb, RTA_MARK, fl4->flowi4_mark)) | 2223 | nla_put_u32(skb, RTA_MARK, fl4->flowi4_mark)) |
2224 | goto nla_put_failure; | 2224 | goto nla_put_failure; |
2225 | 2225 | ||
2226 | error = rt->dst.error; | 2226 | error = rt->dst.error; |