From: Wei Yongjun Date: Sun, 25 Sep 2016 15:43:02 +0000 (+0000) Subject: net: dsa: mv88e6xxx: fix non static symbol warnings X-Git-Tag: v4.9-rc1~127^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3f5bf64d8dbbb08685b91ee4576d2e82e7bd60f;p=platform%2Fkernel%2Flinux-exynos.git net: dsa: mv88e6xxx: fix non static symbol warnings Fixes the following sparse warnings: drivers/net/dsa/mv88e6xxx/chip.c:219:5: warning: symbol 'mv88e6xxx_port_read' was not declared. Should it be static? drivers/net/dsa/mv88e6xxx/chip.c:227:5: warning: symbol 'mv88e6xxx_port_write' was not declared. Should it be static? Signed-off-by: Wei Yongjun Reviewed-by: Vivien Didelot Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 122876c..b2c25da 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -216,16 +216,16 @@ int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) return 0; } -int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, - u16 *val) +static int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, + u16 *val) { int addr = chip->info->port_base_addr + port; return mv88e6xxx_read(chip, addr, reg, val); } -int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, - u16 val) +static int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, + u16 val) { int addr = chip->info->port_base_addr + port;