From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x227PrNtAcUSE8aVIjPODcKrjQO8RMr6bl0CkUU0ZGHrVpC8NlPyRh3VWt4PzhFJWO4ZTKuY8 ARC-Seal: i=1; a=rsa-sha256; t=1517256613; cv=none; d=google.com; s=arc-20160816; b=klKm4afSKkbA6TmUNLN6TvLh+U/X+uZC7uVu9/SLgDMyTZtEFj5Dggnsq9M1NuW1U5 eCjx04wDJe58G0zlXUacW845z99SdgrqfZQq/dWGKv6Kpwc0PQut46C0a8l5qztqoRhe pL6yl/qv3jcV4VT4m+mrkA2GO4LVTGAOursTMr2O+/45j9DmcwkJau1Jlqq1mhoHbPIF K1oeSVtRShe0M4HI+UxlgxBL4rQxqvz8CFEzG5LBi8kJMp2nSXZre5aKKZeqhqFVCM84 r11uuXRBVKDqjkZ6WLhBInsq2akJCphAGxFQo0bMYNgT+9kcxxhXloYzNgP2B8JLp1mk z2Xw== 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=nt2w9NIsN4ZV0i1zHRBku+FIUkSPBd7Gp1ltGVymQ+g=; b=INdvKAEtNR6mG4pIYFb5WoFxcQ4Ez5hsilnk5LBy1sODh6j7Xw+6LICL39ui1rb22/ X3nQI9M+wKqySX0whILQ3FYBLzmm3gbtsuDTzjXcEQ1EL5cKg7oFV1PbMckcVwAO3Bpr GzMcLhHDxqMH670QTyqn8Lhelw2g27Hs8P0TIe3T/iDxz3MJWipF3fPn7UAmCX7ycV3N FwPNvHQDsRKBK+kHMKYTRFhrAYT5ZhUClbNDSfrmByP9HCvSb1NoGoXqpI2BRXchSqMf x0rXNw50Oqn9IjvkkL3UA9c+nWRYeU3mE27/u3HpXxfMvYr4vprbe4fsVGd3U/jLnacF owEg== 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 4.9 05/66] usbip: Fix implicit fallthrough warning Date: Mon, 29 Jan 2018 13:56:29 +0100 Message-Id: <20180129123840.120958096@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123839.842860149@linuxfoundation.org> References: <20180129123839.842860149@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?1590958871382340110?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.9-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;