Skip to content

Commit e3cf397

Browse files
GustavoARSilvadavem330
authored andcommitted
net: rxrpc: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6a413f5 commit e3cf397

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎net/rxrpc/af_rxrpc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ static int rxrpc_listen(struct socket *sock, int backlog)
246246
ret = 0;
247247
break;
248248
}
249+
/* Fall through */
249250
default:
250251
ret = -EBUSY;
251252
break;
@@ -560,6 +561,7 @@ static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
560561
m->msg_name = &rx->connect_srx;
561562
m->msg_namelen = sizeof(rx->connect_srx);
562563
}
564+
/* Fall through */
563565
case RXRPC_SERVER_BOUND:
564566
case RXRPC_SERVER_LISTENING:
565567
ret = rxrpc_do_sendmsg(rx, m, len);

‎net/rxrpc/input.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,7 @@ void rxrpc_data_ready(struct sock *udp_sk)
11251125
case RXRPC_PACKET_TYPE_BUSY:
11261126
if (sp->hdr.flags & RXRPC_CLIENT_INITIATED)
11271127
goto discard;
1128+
/* Fall through */
11281129

11291130
case RXRPC_PACKET_TYPE_DATA:
11301131
if (sp->hdr.callNumber == 0)

‎net/rxrpc/sendmsg.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ static void rxrpc_queue_packet(struct rxrpc_sock *rx, struct rxrpc_call *call,
220220
ktime_get_real());
221221
if (!last)
222222
break;
223+
/* Fall through */
223224
case RXRPC_CALL_SERVER_SEND_REPLY:
224225
call->state = RXRPC_CALL_SERVER_AWAIT_ACK;
225226
rxrpc_notify_end_tx(rx, call, notify_end_tx);

0 commit comments

Comments
 (0)