| From | Greg Kroah-Hartman <> | Subject | [PATCH 4.4 03/74] usbip: Fix implicit fallthrough warning | Date | Mon, 29 Jan 2018 13:56:08 +0100 |
| |
4.4-stable review patch. If anyone has any objections, please let me know.
------------------
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;
|