diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-16 23:36:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-18 15:13:08 +0200 |
commit | 275757e6bae15a8621130907a78096afd1e15d2c (patch) | |
tree | ee6360a7f2e195c2e8685f9eb6bbb64b60ee5ea4 /net/ipv6/exthdrs.c | |
parent | tcp: Use pI6c in tcp tracepoint (diff) | |
download | linux-275757e6bae15a8621130907a78096afd1e15d2c.tar.xz linux-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/exthdrs.c')
-rw-r--r-- | net/ipv6/exthdrs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 95516138e861..7835dea930b4 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -89,6 +89,7 @@ static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff) */ if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) break; + /* fall through */ case 2: /* send ICMP PARM PROB regardless and drop packet */ icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); return false; |