Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usbip: Fix implicit fallthrough warning

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jonathan Dieter and committed by
Greg Kroah-Hartman
cfd6ed45 e5dfa3f9

+2
+2
tools/usb/usbip/src/usbip.c
··· 176 176 break; 177 177 case '?': 178 178 printf("usbip: invalid option\n"); 179 + /* Terminate after printing error */ 180 + /* FALLTHRU */ 179 181 default: 180 182 usbip_usage(); 181 183 goto out;