From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x224KgIDL7VBvo9sGBSwbTeqyzTUcfWyUu9jrE29HCCZ9DQO2LemA3MbRLANcPtde4eDoMKC+ ARC-Seal: i=1; a=rsa-sha256; t=1517256312; cv=none; d=google.com; s=arc-20160816; b=FgKL1Tz5W9494p/Mmf00ods+25j7sBoySGwUEi44hkDec1dh52mSCSqiDgpYeWaVyD xfMfvDapbSjyubPD2R77fISBhYcw4QusiCFRvLmuLRHUyomNrKZ7AmJH33y9IuT2zdYV qwVr/5yK8Ut7r4npjdHSOrfvWccHicSmpo1pjoWj1Ifp+7EaaqgkqSJ3EB/8/ZJkg7FM 6WAqwh5PtDhejnncxTfSBaRuPtHL6AHktdwHm2JAGPr6vlI2Zt9jBq6tmLWODMvecX1H AyK+iDVMcAFRD1W+0nGG/j+E9NG9Tx2Id2c1eT35Tg6VBt+/hwN9mlWwclU6UvPJ/9RT fokQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=0DJ5vP1TWe9LGEUHiS3a9OG4rSf6BWf0/9cAanhy9jY=; b=OscCVmCFOTYo0xJGp0FeRN2OyjBtPcaaT51So6aGJBPCRpg+pWw+rzZII+0zLHhNyu C1WQRtkkJEsf45xkLsC4nLP/mI0fB5CgDxDrcuPEHOOCJJJ7tjw3vyHJQMY2FHu/sV1z F6s1/5SCbCTdjyDnKfSDEa2COiuzpjZqvp5ORewS0vCk9nGNhQYjiCA0dCDIC/Cizv5u 5Gs+1ap/1tEfer7W3vgTk9JY+kEUis91RgYfQiNekcOYbyc8WVKbC8TvanjjwGAd1I7r y9iWd8amxfSvGHxENVbS5qlee+/PqR2W+tHHYmfSwG+vORiL4zoHvP7Pxjev19jx2klN ZGzw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Senna Tschudin , Jonathan Dieter , Shuah Khan Subject: [PATCH 3.18 21/52] usbip: Fix implicit fallthrough warning Date: Mon, 29 Jan 2018 13:56:39 +0100 Message-Id: <20180129123629.125792323@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123628.168904217@linuxfoundation.org> References: <20180129123628.168904217@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1590958554978164786?= X-GMAIL-MSGID: =?utf-8?q?1590958554978164786?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonathan Dieter 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 Signed-off-by: Jonathan Dieter Signed-off-by: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- 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;