Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59b2c314 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

net: dsa: mv88e6xxx: Add missing static to stub functions



'static' was not enough, the helpers must be 'static inline'

net/dsa/mv88e6xxx/global2.h:123:12: error: 'mv88e6xxx_g2_misc_4_bit_port' defined but not used [-Werror=unused-function]
net/dsa/mv88e6xxx/global2.h:117:12: error: 'mv88e6xxx_g2_pvt_write' defined but not used [-Werror=unused-function]

Fixes: c21fbe29 ("net: dsa: mv88e6xxx: Add missing static to stub functions")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 512c7840
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -114,13 +114,13 @@ static inline int mv88e6xxx_g2_set_eeprom16(struct mv88e6xxx_chip *chip,
	return -EOPNOTSUPP;
	return -EOPNOTSUPP;
}
}


static int mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip, int src_dev,
static inline int mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip,
				  int src_port, u16 data)
					 int src_dev, int src_port, u16 data)
{
{
	return -EOPNOTSUPP;
	return -EOPNOTSUPP;
}
}


static int mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip)
static inline int mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip)
{
{
	return -EOPNOTSUPP;
	return -EOPNOTSUPP;
}
}