From: Gustavo A. R. Silva Date: Thu, 19 Oct 2017 17:55:03 +0000 (-0500) Subject: openvswitch: conntrack: mark expected switch fall-through X-Git-Tag: v4.15-rc1~84^2~372 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=279badc2a85be83e0187b8c566e3b476b76a87a2;p=thirdparty%2Fkernel%2Flinux.git openvswitch: conntrack: mark expected switch fall-through 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 Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index fe861e2f0deb8..b27c5c6d9cab3 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c @@ -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.