tipc: mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 4 Jul 2018 21:13:59 +0000 (16:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 11:24:01 +0000 (20:24 +0900)
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>
net/tipc/bearer.c
net/tipc/link.c

index 2dfb492a7c943b61f1b0c551faa6ba1230f3159f..fd6d8f18955ca21941360790f9ef42fef42d70a1 100644 (file)
@@ -610,6 +610,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt,
        case NETDEV_CHANGE:
                if (netif_carrier_ok(dev))
                        break;
+               /* else: fall through */
        case NETDEV_UP:
                test_and_set_bit_lock(0, &b->up);
                break;
index 695acb783969730e448579772dfa3a17b3e827d6..63860329dbaa51f894e0783aa593cae1bf043169 100644 (file)
@@ -1063,6 +1063,7 @@ static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb,
                        skb_queue_tail(mc_inputq, skb);
                        return true;
                }
+               /* else: fall through */
        case CONN_MANAGER:
                skb_queue_tail(inputq, skb);
                return true;