Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tipc: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

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

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
c53e0c78 dfecc759

+2
+1
net/tipc/bearer.c
··· 610 610 case NETDEV_CHANGE: 611 611 if (netif_carrier_ok(dev)) 612 612 break; 613 + /* else: fall through */ 613 614 case NETDEV_UP: 614 615 test_and_set_bit_lock(0, &b->up); 615 616 break;
+1
net/tipc/link.c
··· 1063 1063 skb_queue_tail(mc_inputq, skb); 1064 1064 return true; 1065 1065 } 1066 + /* else: fall through */ 1066 1067 case CONN_MANAGER: 1067 1068 skb_queue_tail(inputq, skb); 1068 1069 return true;