summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ah6.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2017-10-16 23:36:52 +0200
committerDavid S. Miller2017-10-18 15:13:08 +0200
commit275757e6bae15a8621130907a78096afd1e15d2c (patch)
treeee6360a7f2e195c2e8685f9eb6bbb64b60ee5ea4 /net/ipv6/ah6.c
parenttcp: Use pI6c in tcp tracepoint (diff)
downloadkernel-qcow2-linux-275757e6bae15a8621130907a78096afd1e15d2c.tar.gz
kernel-qcow2-linux-275757e6bae15a8621130907a78096afd1e15d2c.tar.xz
kernel-qcow2-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/ah6.c')
-rw-r--r--net/ipv6/ah6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
index 7802b72196f3..37bb33fbc742 100644
--- a/net/ipv6/ah6.c
+++ b/net/ipv6/ah6.c
@@ -271,6 +271,7 @@ static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir)
case NEXTHDR_DEST:
if (dir == XFRM_POLICY_OUT)
ipv6_rearrange_destopt(iph, exthdr.opth);
+ /* fall through */
case NEXTHDR_HOP:
if (!zero_out_mutable_opts(exthdr.opth)) {
net_dbg_ratelimited("overrun %sopts\n",