From: Greg Kroah-Hartman Date: Mon, 16 May 2022 21:21:24 +0000 (+0200) Subject: 5.10-stable patches X-Git-Tag: v4.9.315~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=483736350d203ea0129c3d7c58ed4d12ec1b631b;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: sunrpc-fix-fall-through-warnings-for-clang.patch --- diff --git a/queue-5.10/series b/queue-5.10/series index 7f575b4ad13..e3d422bf0b6 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -65,3 +65,4 @@ ping-fix-address-binding-wrt-vrf.patch usb-gadget-uvc-rename-function-to-be-more-consistent.patch usb-gadget-uvc-allow-for-application-to-cleanly-shutdown.patch io_uring-always-use-original-task-when-preparing-req-identity.patch +sunrpc-fix-fall-through-warnings-for-clang.patch diff --git a/queue-5.10/sunrpc-fix-fall-through-warnings-for-clang.patch b/queue-5.10/sunrpc-fix-fall-through-warnings-for-clang.patch new file mode 100644 index 00000000000..96888d18bca --- /dev/null +++ b/queue-5.10/sunrpc-fix-fall-through-warnings-for-clang.patch @@ -0,0 +1,42 @@ +From 93f479d3ad05497f29f2bed58e4a6c6a4f0a548c Mon Sep 17 00:00:00 2001 +From: "Gustavo A. R. Silva" +Date: Fri, 20 Nov 2020 12:40:02 -0600 +Subject: SUNRPC: Fix fall-through warnings for Clang + +From: Gustavo A. R. Silva + +commit 93f479d3ad05497f29f2bed58e4a6c6a4f0a548c 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: Gustavo A. R. Silva +Signed-off-by: Anna Schumaker +Signed-off-by: Greg Kroah-Hartman +--- + net/sunrpc/rpc_pipe.c | 1 + + net/sunrpc/xprtsock.c | 1 + + 2 files changed, 2 insertions(+) + +--- a/net/sunrpc/rpc_pipe.c ++++ b/net/sunrpc/rpc_pipe.c +@@ -478,6 +478,7 @@ rpc_get_inode(struct super_block *sb, um + inode->i_fop = &simple_dir_operations; + inode->i_op = &simple_dir_inode_operations; + inc_nlink(inode); ++ break; + default: + break; + } +--- a/net/sunrpc/xprtsock.c ++++ b/net/sunrpc/xprtsock.c +@@ -1917,6 +1917,7 @@ static int xs_local_setup_socket(struct + xprt->stat.connect_time += (long)jiffies - + xprt->stat.connect_start; + xprt_set_connected(xprt); ++ break; + case -ENOBUFS: + break; + case -ENOENT: