]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ipv4: remove sparse error in ip_neigh_gw4()
authorEric Dumazet <edumazet@google.com>
Thu, 27 Jan 2022 01:34:04 +0000 (17:34 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:55 +0000 (10:28 +0100)
commit99b7460d732253902076c7da3a394b0975c4bb25
treea239047436098ae2d61a1d7a73018385f7ee45a4
parent9775efaf4f8b6cddc01033f2926f2909e093e6e7
ipv4: remove sparse error in ip_neigh_gw4()

BugLink: https://bugs.launchpad.net/bugs/1959879
[ Upstream commit 3c42b2019863b327caa233072c50739d4144dd16 ]

./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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
include/net/route.h