]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
openvswitch: conntrack: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 19 Oct 2017 17:55:03 +0000 (12:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:01:26 +0000 (02:01 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Notice that in this particular case I placed a "fall through" comment on
its own line, which is what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c

index fe861e2f0deb8279895947c018e29e739bb36553..b27c5c6d9cab305a58d04608f38252eea034c32e 100644 (file)
@@ -752,6 +752,7 @@ static int ovs_ct_nat_execute(struct sk_buff *skb, struct nf_conn *ct,
                        }
                }
                /* Non-ICMP, fall thru to initialize if needed. */
+               /* fall through */
        case IP_CT_NEW:
                /* Seen it before?  This can happen for loopback, retrans,
                 * or local packets.