switchdev: Fix return value of switchdev_port_fdb_dump().
authorRosen, Rami <rami.rosen@intel.com>
Fri, 2 Sep 2016 11:11:57 +0000 (14:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2016 18:00:21 +0000 (11:00 -0700)
commitdd19bde36739702bbd9a832b5d4995bc0fa8d6d7
treee73d25e2e7a362d5c7bb0778201a98f88e65c541
parent4df20483ab287b24a7ffe38e53d473880de3dd98
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 d297653dd6f07afbe7e6c702a4bcd7615680002e
("rtnetlink: fdb dump: optimize by saving last interface markers").

Signed-off-by: Rami Rosen <rami.rosen@intel.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h