aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-07-04 17:13:59 -0400
committerDavid S. Miller <davem@davemloft.net>2018-07-05 07:24:01 -0400
commitc53e0c787e672b4edbf719b7c1ec5833db3af2da (patch)
treee8850f4c95617bc6994639ad59a0cb1c6cf0d0de
parentdfecc759e64b0ea581468fe2359836f1998deac9 (diff)
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>
-rw-r--r--net/tipc/bearer.c1
-rw-r--r--net/tipc/link.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index 2dfb492a7c94..fd6d8f18955c 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -610,6 +610,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt,
610 case NETDEV_CHANGE: 610 case NETDEV_CHANGE:
611 if (netif_carrier_ok(dev)) 611 if (netif_carrier_ok(dev))
612 break; 612 break;
613 /* else: fall through */
613 case NETDEV_UP: 614 case NETDEV_UP:
614 test_and_set_bit_lock(0, &b->up); 615 test_and_set_bit_lock(0, &b->up);
615 break; 616 break;
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 695acb783969..63860329dbaa 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1063,6 +1063,7 @@ static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb,
1063 skb_queue_tail(mc_inputq, skb); 1063 skb_queue_tail(mc_inputq, skb);
1064 return true; 1064 return true;
1065 } 1065 }
1066 /* else: fall through */
1066 case CONN_MANAGER: 1067 case CONN_MANAGER:
1067 skb_queue_tail(inputq, skb); 1068 skb_queue_tail(inputq, skb);
1068 return true; 1069 return true;