linux/drivers/net/dsa/microchip
Gustavo A. R. Silva 0fd128428a net: dsa: microchip: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

This patch fixes the following warning:

drivers/net/dsa/microchip/ksz9477.c: In function ‘ksz9477_get_interface’:
drivers/net/dsa/microchip/ksz9477.c:1145:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (gbit)
      ^
drivers/net/dsa/microchip/ksz9477.c:1147:2: note: here
  case 0:
  ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-03 21:38:29 -07:00
..
Kconfig net: dsa: ksz: Rename NET_DSA_TAG_KSZ to _KSZ9477 2018-12-16 14:23:33 -08:00
ksz9477_reg.h net: dsa: microchip: rename ksz_9477_reg.h to ksz9477_reg.h 2018-11-20 20:57:12 -08:00
ksz9477_spi.c net: dsa: microchip: add KSZ9893 switch support 2019-03-03 13:48:49 -08:00
ksz9477.c net: dsa: microchip: mark expected switch fall-through 2019-04-03 21:38:29 -07:00
ksz_common.c net: dsa: microchip: add KSZ9893 switch support 2019-03-03 13:48:49 -08:00
ksz_common.h dsa: Remove phydev parameter from disable_port call 2019-02-24 22:30:34 -08:00
ksz_priv.h net: dsa: microchip: add port_cleanup function 2019-02-24 17:49:59 -08:00
ksz_spi.h net: dsa: microchip: break KSZ9477 DSA driver into two files 2018-11-20 20:57:12 -08:00
Makefile net: dsa: microchip: break KSZ9477 DSA driver into two files 2018-11-20 20:57:12 -08:00