Skip to content
Commit dd19bde3 authored by Rosen, Rami's avatar Rosen, Rami Committed by David S. Miller
Browse files

switchdev: Fix return value of switchdev_port_fdb_dump().

This patch fixes the retun value of switchdev_port_fdb_dump() when
CONFIG_NET_SWITCHDEV is not set. This avoids getting "warning: return makes
integer from pointer without a cast [-Wint-conversion]" when building
when CONFIG_NET_SWITCHDEV is not set under several compiler versions.
This warning is due to commit d297653d


("rtnetlink: fdb dump: optimize by saving last interface markers").

Signed-off-by: default avatarRami Rosen <rami.rosen@intel.com>
Acked-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Reported-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4df20483
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment