diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-15 14:22:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 16:15:21 -0400 |
commit | bc28df6e8543d41abfb48d4a4c6d445638d6768c (patch) | |
tree | bc2b37a8643e84fa8fe94315c39c66bd8ceefd3d | |
parent | 2a600d97cbb2a9311e6b42547d37e0eca9b9d6d6 (diff) |
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>
-rw-r--r-- | net/dccp/input.c | 1 | ||||
-rw-r--r-- | net/dccp/options.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c index fa6be9750bb4..d28d46bff6ab 100644 --- a/net/dccp/input.c +++ b/net/dccp/input.c | |||
@@ -534,6 +534,7 @@ static int dccp_rcv_respond_partopen_state_process(struct sock *sk, | |||
534 | case DCCP_PKT_DATA: | 534 | case DCCP_PKT_DATA: |
535 | if (sk->sk_state == DCCP_RESPOND) | 535 | if (sk->sk_state == DCCP_RESPOND) |
536 | break; | 536 | break; |
537 | /* fall through */ | ||
537 | case DCCP_PKT_DATAACK: | 538 | case DCCP_PKT_DATAACK: |
538 | case DCCP_PKT_ACK: | 539 | case DCCP_PKT_ACK: |
539 | /* | 540 | /* |
diff --git a/net/dccp/options.c b/net/dccp/options.c index 51cdfc3bd8ca..4e40db017e19 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c | |||
@@ -227,8 +227,8 @@ int dccp_parse_options(struct sock *sk, struct dccp_request_sock *dreq, | |||
227 | * Ack vectors are processed by the TX CCID if it is | 227 | * Ack vectors are processed by the TX CCID if it is |
228 | * interested. The RX CCID need not parse Ack Vectors, | 228 | * interested. The RX CCID need not parse Ack Vectors, |
229 | * since it is only interested in clearing old state. | 229 | * since it is only interested in clearing old state. |
230 | * Fall through. | ||
231 | */ | 230 | */ |
231 | /* fall through */ | ||
232 | case DCCPO_MIN_TX_CCID_SPECIFIC ... DCCPO_MAX_TX_CCID_SPECIFIC: | 232 | case DCCPO_MIN_TX_CCID_SPECIFIC ... DCCPO_MAX_TX_CCID_SPECIFIC: |
233 | if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk, | 233 | if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk, |
234 | pkt_type, opt, value, len)) | 234 | pkt_type, opt, value, len)) |