diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-16 16:36:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-18 14:13:08 +0100 |
commit | 275757e6bae15a8621130907a78096afd1e15d2c (patch) | |
tree | ee6360a7f2e195c2e8685f9eb6bbb64b60ee5ea4 /net/ipv6/netfilter/nf_nat_l3proto_ipv6.c | |
parent | tcp: Use pI6c in tcp tracepoint (diff) | |
download | linux-dev-275757e6bae15a8621130907a78096afd1e15d2c.tar.xz linux-dev-275757e6bae15a8621130907a78096afd1e15d2c.zip |
ipv6: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Notice that in some cases I placed the "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/ipv6/netfilter/nf_nat_l3proto_ipv6.c')
-rw-r--r-- | net/ipv6/netfilter/nf_nat_l3proto_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c b/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c index 46d6dba50698..1d2fb9267d6f 100644 --- a/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c +++ b/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c @@ -290,7 +290,8 @@ nf_nat_ipv6_fn(void *priv, struct sk_buff *skb, else return NF_ACCEPT; } - /* Fall thru... (Only ICMPs can be IP_CT_IS_REPLY) */ + /* Only ICMPs can be IP_CT_IS_REPLY: */ + /* fall through */ case IP_CT_NEW: /* Seen it before? This can happen for loopback, retrans, * or local packets. |