diff options
author | Eric Dumazet <edumazet@google.com> | 2022-01-26 17:34:04 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-27 08:38:33 -0800 |
commit | 3c42b2019863b327caa233072c50739d4144dd16 (patch) | |
tree | b901ecd51e9dbeaf95dfa204cf3893d7cab2d2b4 /include/net | |
parent | 3ede6465e756651ff5bd9b495d6cacd5ec8216e5 (diff) | |
download | linux-3c42b2019863b327caa233072c50739d4144dd16.tar.bz2 |
ipv4: remove sparse error in ip_neigh_gw4()
./include/net/route.h:373:48: warning: incorrect type in argument 2 (different base types)
./include/net/route.h:373:48: expected unsigned int [usertype] key
./include/net/route.h:373:48: got restricted __be32 [usertype] daddr
Fixes: 5c9f7c1dfc2e ("ipv4: Add helpers for neigh lookup for nexthop")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220127013404.1279313-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 4c858dcf1aa8..25404fc2b483 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -370,7 +370,7 @@ static inline struct neighbour *ip_neigh_gw4(struct net_device *dev, { struct neighbour *neigh; - neigh = __ipv4_neigh_lookup_noref(dev, daddr); + neigh = __ipv4_neigh_lookup_noref(dev, (__force u32)daddr); if (unlikely(!neigh)) neigh = __neigh_create(&arp_tbl, &daddr, dev, false); |