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>
This commit is contained in:
parent
6a413f5cf6
commit
e3cf39706b
|
@ -246,6 +246,7 @@ static int rxrpc_listen(struct socket *sock, int backlog)
|
||||||
ret = 0;
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* Fall through */
|
||||||
default:
|
default:
|
||||||
ret = -EBUSY;
|
ret = -EBUSY;
|
||||||
break;
|
break;
|
||||||
|
@ -560,6 +561,7 @@ static int rxrpc_sendmsg(struct socket *sock, struct msghdr *m, size_t len)
|
||||||
m->msg_name = &rx->connect_srx;
|
m->msg_name = &rx->connect_srx;
|
||||||
m->msg_namelen = sizeof(rx->connect_srx);
|
m->msg_namelen = sizeof(rx->connect_srx);
|
||||||
}
|
}
|
||||||
|
/* Fall through */
|
||||||
case RXRPC_SERVER_BOUND:
|
case RXRPC_SERVER_BOUND:
|
||||||
case RXRPC_SERVER_LISTENING:
|
case RXRPC_SERVER_LISTENING:
|
||||||
ret = rxrpc_do_sendmsg(rx, m, len);
|
ret = rxrpc_do_sendmsg(rx, m, len);
|
||||||
|
|
|
@ -1125,6 +1125,7 @@ void rxrpc_data_ready(struct sock *udp_sk)
|
||||||
case RXRPC_PACKET_TYPE_BUSY:
|
case RXRPC_PACKET_TYPE_BUSY:
|
||||||
if (sp->hdr.flags & RXRPC_CLIENT_INITIATED)
|
if (sp->hdr.flags & RXRPC_CLIENT_INITIATED)
|
||||||
goto discard;
|
goto discard;
|
||||||
|
/* Fall through */
|
||||||
|
|
||||||
case RXRPC_PACKET_TYPE_DATA:
|
case RXRPC_PACKET_TYPE_DATA:
|
||||||
if (sp->hdr.callNumber == 0)
|
if (sp->hdr.callNumber == 0)
|
||||||
|
|
|
@ -220,6 +220,7 @@ static void rxrpc_queue_packet(struct rxrpc_sock *rx, struct rxrpc_call *call,
|
||||||
ktime_get_real());
|
ktime_get_real());
|
||||||
if (!last)
|
if (!last)
|
||||||
break;
|
break;
|
||||||
|
/* Fall through */
|
||||||
case RXRPC_CALL_SERVER_SEND_REPLY:
|
case RXRPC_CALL_SERVER_SEND_REPLY:
|
||||||
call->state = RXRPC_CALL_SERVER_AWAIT_ACK;
|
call->state = RXRPC_CALL_SERVER_AWAIT_ACK;
|
||||||
rxrpc_notify_end_tx(rx, call, notify_end_tx);
|
rxrpc_notify_end_tx(rx, call, notify_end_tx);
|
||||||
|
|
Loading…
Reference in New Issue