diff options
| author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-19 13:55:03 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-10-21 21:01:26 -0400 |
| commit | 279badc2a85be83e0187b8c566e3b476b76a87a2 (patch) | |
| tree | 1183df3a3b6cd1c2e71d46f985977c196d93f915 /net/openvswitch | |
| parent | e28101a37c3e6b74aeebe4a340636b1782deb830 (diff) | |
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 <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
| -rw-r--r-- | net/openvswitch/conntrack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index fe861e2f0deb..b27c5c6d9cab 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, | |||
| 752 | } | 752 | } |
| 753 | } | 753 | } |
| 754 | /* Non-ICMP, fall thru to initialize if needed. */ | 754 | /* Non-ICMP, fall thru to initialize if needed. */ |
| 755 | /* fall through */ | ||
| 755 | case IP_CT_NEW: | 756 | case IP_CT_NEW: |
| 756 | /* Seen it before? This can happen for loopback, retrans, | 757 | /* Seen it before? This can happen for loopback, retrans, |
| 757 | * or local packets. | 758 | * or local packets. |
