In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
                                goto next_set;
                        if (set->variant->uref)
                                set->variant->uref(set, cb, true);
-                       /* Fall through and add elements */
+                       /* fall through */
                default:
                        rcu_read_lock_bh();
                        ret = set->variant->list(set, skb, cb);
 
        switch (skb->ip_summed) {
        case CHECKSUM_NONE:
                skb->csum = skb_checksum(skb, tcphoff, skb->len - tcphoff, 0);
+               /* fall through */
        case CHECKSUM_COMPLETE:
 #ifdef CONFIG_IP_VS_IPV6
                if (af == AF_INET6) {
 
                case CHECKSUM_NONE:
                        skb->csum = skb_checksum(skb, udphoff,
                                                 skb->len - udphoff, 0);
+                       /* fall through */
                case CHECKSUM_COMPLETE:
 #ifdef CONFIG_IP_VS_IPV6
                        if (af == AF_INET6) {
 
        case 4:
                v |= *bs->cur++;
                v <<= 8;
+               /* fall through */
        case 3:
                v |= *bs->cur++;
                v <<= 8;
+               /* fall through */
        case 2:
                v |= *bs->cur++;
                v <<= 8;
+               /* fall through */
        case 1:
                v |= *bs->cur++;
                break;
 
        case NFT_CMP_LT:
                if (d == 0)
                        goto mismatch;
+               /* fall through */
        case NFT_CMP_LTE:
                if (d > 0)
                        goto mismatch;
        case NFT_CMP_GT:
                if (d == 0)
                        goto mismatch;
+               /* fall through */
        case NFT_CMP_GTE:
                if (d < 0)
                        goto mismatch;
 
                trav->curr = trav->curr->next;
                if (trav->curr != trav->head)
                        break;
-               /* fallthru, _stop will unlock */
+               /* fall through */
        default:
                return NULL;
        }