From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73844C433E1 for ; Wed, 8 Jul 2020 01:56:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FD4820738 for ; Wed, 8 Jul 2020 01:56:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbgGHB4e (ORCPT ); Tue, 7 Jul 2020 21:56:34 -0400 Received: from smtprelay0243.hostedemail.com ([216.40.44.243]:36486 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728191AbgGHB4e (ORCPT ); Tue, 7 Jul 2020 21:56:34 -0400 Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave03.hostedemail.com (Postfix) with ESMTP id 2F6C61801E211; Wed, 8 Jul 2020 01:56:33 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 728E9180A7FD2; Wed, 8 Jul 2020 01:56:32 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: wind91_01044d026eb9 X-Filterd-Recvd-Size: 1760 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Wed, 8 Jul 2020 01:56:30 +0000 (UTC) Message-ID: <8e08240671d65f1e92dbf5e1e066190149e0d074.camel@perches.com> Subject: Re: [PATCH] usbip: Use fallthrough pseudo-keyword From: Joe Perches To: Shuah Khan , "Gustavo A. R. Silva" , Greg Kroah-Hartman , Valentina Manea , Shuah Khan Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall Date: Tue, 07 Jul 2020 18:56:29 -0700 In-Reply-To: <977e88c2-58cb-9507-c889-854e574a8f31@linuxfoundation.org> References: <20200707195214.GA3932@embeddedor> <977e88c2-58cb-9507-c889-854e574a8f31@linuxfoundation.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, 2020-07-07 at 14:06 -0600, Shuah Khan wrote: > On 7/7/20 1:52 PM, Gustavo A. R. Silva wrote: > > Replace the existing /* fall through */ comments and its variants with > > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > > fall-through markings when it is the case. > > > > [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > > > Is fallthrough syntax supported on our min gcc version? No. Introduced in gcc 7. > Does checkpatch or coccicheck catch these cases? Kinda. checkpatch isn't very good at it. I _believe_, though I'm not at all sure, that coccinelle can find these.