tmp_suning_uos_patched/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
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
ksz9477_reg.h
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
Makefile