]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 16 Oct 2017 20:48:55 +0000 (15:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Oct 2017 13:10:29 +0000 (14:10 +0100)
commitfcfd6dfab97006d44c7db5d6c908eac383af6649
tree4d959ed7720b96140dbdb04bcf94d571e73865d8
parent86e58cce939cefd806105922e4a0840e9a04a88f
ipv4: 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.

Addresses-Coverity-ID: 115108
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/arp.c
net/ipv4/devinet.c
net/ipv4/ipmr.c
net/ipv4/netfilter/nf_nat_l3proto_ipv4.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c