Skip to content

Commit bc28df6

Browse files
GustavoARSilvadavem330
authored andcommitted
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>
1 parent 2a600d9 commit bc28df6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/dccp/input.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ static int dccp_rcv_respond_partopen_state_process(struct sock *sk,
534534
case DCCP_PKT_DATA:
535535
if (sk->sk_state == DCCP_RESPOND)
536536
break;
537+
/* fall through */
537538
case DCCP_PKT_DATAACK:
538539
case DCCP_PKT_ACK:
539540
/*

‎net/dccp/options.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ int dccp_parse_options(struct sock *sk, struct dccp_request_sock *dreq,
227227
* Ack vectors are processed by the TX CCID if it is
228228
* interested. The RX CCID need not parse Ack Vectors,
229229
* since it is only interested in clearing old state.
230-
* Fall through.
231230
*/
231+
/* fall through */
232232
case DCCPO_MIN_TX_CCID_SPECIFIC ... DCCPO_MAX_TX_CCID_SPECIFIC:
233233
if (ccid_hc_tx_parse_options(dp->dccps_hc_tx_ccid, sk,
234234
pkt_type, opt, value, len))

0 commit comments

Comments
 (0)