]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 09:11:13 +0000 (10:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 09:11:13 +0000 (10:11 +0100)
added patches:
usbip-fix-implicit-fallthrough-warning.patch

queue-3.18/series
queue-3.18/usbip-fix-implicit-fallthrough-warning.patch [new file with mode: 0644]

index 044db55fe7e6e30f48afda98052e66cb85da769d..019d75fcf6e68ae6e1b881e8f5f16efa28791e0e 100644 (file)
@@ -18,3 +18,4 @@ dm-thin-metadata-thin_max_concurrent_locks-should-be-6.patch
 arm64-kvm-fix-smccc-handling-of-unimplemented-smc-hvc-calls.patch
 mips-ar7-ensure-the-port-type-s-fcr-value-is-used.patch
 x86-asm-32-make-sync_core-handle-missing-cpuid-on-all-32-bit-kernels.patch
+usbip-fix-implicit-fallthrough-warning.patch
diff --git a/queue-3.18/usbip-fix-implicit-fallthrough-warning.patch b/queue-3.18/usbip-fix-implicit-fallthrough-warning.patch
new file mode 100644 (file)
index 0000000..da83c9c
--- /dev/null
@@ -0,0 +1,35 @@
+From cfd6ed4537a9e938fa76facecd4b9cd65b6d1563 Mon Sep 17 00:00:00 2001
+From: Jonathan Dieter <jdieter@lesbg.com>
+Date: Mon, 27 Feb 2017 10:31:04 +0200
+Subject: usbip: Fix implicit fallthrough warning
+
+From: Jonathan Dieter <jdieter@lesbg.com>
+
+commit cfd6ed4537a9e938fa76facecd4b9cd65b6d1563 upstream.
+
+GCC 7 now warns when switch statements fall through implicitly, and with
+-Werror enabled in configure.ac, that makes these tools unbuildable.
+
+We fix this by notifying the compiler that this particular case statement
+is meant to fall through.
+
+Reviewed-by: Peter Senna Tschudin <peter.senna@gmail.com>
+Signed-off-by: Jonathan Dieter <jdieter@lesbg.com>
+Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ tools/usb/usbip/src/usbip.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/tools/usb/usbip/src/usbip.c
++++ b/tools/usb/usbip/src/usbip.c
+@@ -176,6 +176,8 @@ int main(int argc, char *argv[])
+                       break;
+               case '?':
+                       printf("usbip: invalid option\n");
++                      /* Terminate after printing error */
++                      /* FALLTHRU */
+               default:
+                       usbip_usage();
+                       goto out;