aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2020-08-26 19:48:52 +0300
committerDavid S. Miller <[email protected]>2020-08-26 16:00:51 -0700
commit33d80996b85283f90474d531920e40ccc2aab918 (patch)
tree0a26a51da987eb31228538042a1639201e2a7f4c /drivers/fpga/fpga-bridge.c
parentd7d49dc77c8db113393a31aced3f0562f4afd439 (diff)
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 <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions