net: ipx: mark expected switch fall-through
Subsystems (2)
PATCH 1/1 net: ipx: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
---
This code was tested by compilation only (GCC 7.2.0 was used). Please, verify if the actual intention of the code is to fall through.
net/ipx/af_ipx.c | 1 + 1 file changed, 1 insertion(+)
net/ipx/af_ipx.c +1 -0
@@ -1867,6 +1867,7 @@ static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) rc = -EPERM ;if (!capable (CAP_NET_ADMIN ))break ; +/* fall through */ case SIOCGIFADDR : rc =ipxitf_ioctl (cmd, argp);break ;
Signature · 1 line
2.7.4
From: "Gustavo A. R. Silva" <[email protected]>
Date: Mon, 16 Oct 2017 16:53:16 -0500
Quoted 4 lines
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied.