Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dccp: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Notice that for options.c file, 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>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
bc28df6e 2a600d97

+2 -1
+1
net/dccp/input.c
··· 534 534 case DCCP_PKT_DATA: 535 535 if (sk->sk_state == DCCP_RESPOND) 536 536 break; 537 + /* fall through */ 537 538 case DCCP_PKT_DATAACK: 538 539 case DCCP_PKT_ACK: 539 540 /*
+1 -1
net/dccp/options.c
··· 227 227 * Ack vectors are processed by the TX CCID if it is 228 228 * interested. The RX CCID need not parse Ack Vectors, 229 229 * since it is only interested in clearing old state. 230 - * Fall through. 231 230 */ 231 + /* fall through */ 232 232 case DCCPO_MIN_TX_CCID_SPECIFIC ... DCCPO_MAX_TX_CCID_SPECIFIC: 233 233 if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk, 234 234 pkt_type, opt, value, len))