Commit dfbe619c authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Zheng Zengkai
Browse files

SUNRPC: Fix fall-through warnings for Clang

stable inclusion
from stable-v5.10.117
commit 937c6b0e3e94c09d4b9ddccb3d49c8b4f71f4700
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L66B

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=937c6b0e3e94c09d4b9ddccb3d49c8b4f71f4700

--------------------------------

commit 93f479d3 upstream.

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115


Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent f0dde9f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment