summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-11-07 01:18:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-04 13:15:05 +0200
commit9a2d4f736c6882a02d8c11c8797db97cf1d9ee58 (patch)
treecafb8de9639c3dbaf4c523f578ec266d8af6617f
parent29957da407f6d28170059492c785aa451af28f19 (diff)
downloadlinux-stable-9a2d4f736c6882a02d8c11c8797db97cf1d9ee58.tar.gz
linux-stable-9a2d4f736c6882a02d8c11c8797db97cf1d9ee58.tar.bz2
linux-stable-9a2d4f736c6882a02d8c11c8797db97cf1d9ee58.zip
net: dsa: mv8e6xxx: Fix stub function parameters
commit 64a26007a8f51442a9efddf7d98d50e2ca4349cd upstream. mv88e6xxx_g2_atu_stats_get() takes two parameters. Make the stub function also take two, otherwise we get compile errors. Fixes: c5f299d59261 ("net: dsa: mv88e6xxx: global1_atu: Add helper for get next") Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/dsa/mv88e6xxx/global2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/global2.h b/drivers/net/dsa/mv88e6xxx/global2.h
index a0cc40e7c250..de63e3f08e5c 100644
--- a/drivers/net/dsa/mv88e6xxx/global2.h
+++ b/drivers/net/dsa/mv88e6xxx/global2.h
@@ -533,7 +533,8 @@ static inline int mv88e6xxx_g2_atu_stats_set(struct mv88e6xxx_chip *chip,
return -EOPNOTSUPP;
}
-static inline int mv88e6xxx_g2_atu_stats_get(struct mv88e6xxx_chip *chip)
+static inline int mv88e6xxx_g2_atu_stats_get(struct mv88e6xxx_chip *chip,
+ u16 *stats)
{
return -EOPNOTSUPP;
}