aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2020-08-26 19:48:52 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-26 16:00:51 -0700
commit33d80996b85283f90474d531920e40ccc2aab918 (patch)
tree0a26a51da987eb31228538042a1639201e2a7f4c /tools/perf/scripts/python/export-to-postgresql.py
parentipv4: nexthop: Reduce allocation size of 'struct nh_group' (diff)
downloadlinux-33d80996b85283f90474d531920e40ccc2aab918.tar.gz
linux-33d80996b85283f90474d531920e40ccc2aab918.zip
ipv4: nexthop: Use nla_put_be32() for NHA_GATEWAY
The code correctly uses nla_get_be32() to get the payload of the attribute, but incorrectly uses nla_put_u32() to add the attribute to the payload. This results in the following warning: net/ipv4/nexthop.c:279:59: warning: incorrect type in argument 3 (different base types) net/ipv4/nexthop.c:279:59: expected unsigned int [usertype] value net/ipv4/nexthop.c:279:59: got restricted __be32 [usertype] ipv4 Suppress the warning by using nla_put_be32(). Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions