summaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 12:38:20 -0600
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-05-17 19:57:18 -0500
commit5af5a020ddd10afc6caff05b4c941c2b1c17bf1d (patch)
tree58f849bafdb3f8d3dade5fea889f4752f044b178 /net/packet
parent6518e3fc972ed54772f81e8b89b17be47f6d55f3 (diff)
net/packet: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index ba96db1880ea..bfd805d6d79d 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1655,6 +1655,7 @@ static int fanout_add(struct sock *sk, struct fanout_args *args)
case PACKET_FANOUT_ROLLOVER:
if (type_flags & PACKET_FANOUT_FLAG_ROLLOVER)
return -EINVAL;
+ break;
case PACKET_FANOUT_HASH:
case PACKET_FANOUT_LB:
case PACKET_FANOUT_CPU: