mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
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 d297653dd6
("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>
This commit is contained in:
parent
4df20483ab
commit
dd19bde367
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ static inline int switchdev_port_fdb_dump(struct sk_buff *skb,
|
||||||
struct net_device *filter_dev,
|
struct net_device *filter_dev,
|
||||||
int *idx)
|
int *idx)
|
||||||
{
|
{
|
||||||
return idx;
|
return *idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool switchdev_port_same_parent_id(struct net_device *a,
|
static inline bool switchdev_port_same_parent_id(struct net_device *a,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue