Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4924164ybv; Mon, 17 Feb 2020 08:31:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyqVdSycyZwvVDtHCUXJf+m25yUKk8G7Z4BFUiv7LEKRGy9DfD+hVnHGqyhILCAFyd7YjPq X-Received: by 2002:a9d:6289:: with SMTP id x9mr13005701otk.8.1581957111472; Mon, 17 Feb 2020 08:31:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581957111; cv=none; d=google.com; s=arc-20160816; b=YsMGR8hf0vf44M7jZY/DE49PEuzq/qundDQipqWOKwKFwr/6eicL4h/sDzE/g0NGyT /jyHyPUCPs6OgISPS8gSxIaFnuqqUgtu/vIKWMI7qjTj8Avd5h9Gu1iUjxbA0wzILWHZ 597JSN1sx0/6iXE3qwP5OQrO1+AnUhHX0L3MkxVzSdZAqv7Jx5hbbF86DhBeHSv1wh1b U0OkWwBysiOS4yyrhNuPq2fXLk9Vxp08pDbF7/zfAOI8flmYcx3vhr5oKCCBkTuP3stO 3hw8dKhuLQvOjXS4Ii58BBhmOd7zxsu5VbrnPQsdKG6gFhG/+pBlm+d7Z+7E2xLlG91t cheQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=u05SMJu3fIBX6DiNZmYVMVogTnsJOoGerao+FK/+T/U=; b=hQkhpyoMIiZZN+hltF/1fAUUOY8U5ALpfT863f5CU2GHaqUz71oDVT2ckuQcq6h6DK 2yUmTT2Ia9mEfBhh37HHg4/jN1SZV3xh9gamdQacpz2cCZUanaxE672pnJJssiNfO+yD frTV3ozuvAXH0IGxBnL11YSGOCcsI9kORoA4RLrj3/yrq65UsJzs47zl+sh8iY4v6Zm5 r1m0qVw/mhAWP8C/yjyKbvFgKU+uP5fk6LnaqIfqqsRD83EsTjzEtV6/bgY6LCjgZeo2 /iM0d+ViNiYa5D6nyz9apwM+M301L34Zjcc7yPY8hspo1g7wanG17M9EEFyc4jnVZQjs UzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PYKA5FNI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si7093961oig.184.2020.02.17.08.31.38; Mon, 17 Feb 2020 08:31:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PYKA5FNI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728854AbgBQQ3t (ORCPT + 99 others); Mon, 17 Feb 2020 11:29:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:37604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726866AbgBQQ3t (ORCPT ); Mon, 17 Feb 2020 11:29:49 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F594214D8; Mon, 17 Feb 2020 16:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581956987; bh=EsYyewiCgEfKwPRCUKZl1Kg4p+gbDyMv0r1YSwvRpKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PYKA5FNITPtJeMhzm8IO0pT/LVtgCldu3tksSLOAZcrCpmeIWD6T63T/gqXQZMMne czK8ZiLeFZFExOehdR2b7Vo6BnQxx6qfZEKbhPcLvTDQ0RS/HW1Uy+l0D7grVkH9vH DTrsRbr6TvyBz9ccxbwp91u+JClv3t/oPfk93C4g= Date: Mon, 17 Feb 2020 17:29:45 +0100 From: Greg Kroah-Hartman To: "Gustavo A. R. Silva" Cc: Rasmus Villemoes , Timur Tabi , Li Yang , Anton Vorontsov , kbuild test robot , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Joe Perches Subject: Re: [PATCH] usb: host: fhci-hcd: annotate PIPE_CONTROL switch case with fallthrough Message-ID: <20200217162945.GC1502885@kroah.com> References: <20200213085401.27862-1-linux@rasmusvillemoes.dk> <20200213125659.GB3325929@kroah.com> <6ab68169-dde6-b5ba-0909-fa685bd24aac@rasmusvillemoes.dk> <20200217093836.GA37937@kroah.com> <20200217141831.GA1123892@kroah.com> <298629e3-40bb-9530-8292-7e2a9432cd4a@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <298629e3-40bb-9530-8292-7e2a9432cd4a@embeddedor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 17, 2020 at 10:15:09AM -0600, Gustavo A. R. Silva wrote: > Hi! > > Sorry for the late reply. I wasn't aware of this thread until now. > > Please, see my comments below... > > On 2/17/20 08:18, Greg Kroah-Hartman wrote: > > On Mon, Feb 17, 2020 at 03:12:21PM +0100, Rasmus Villemoes wrote: > >> On 17/02/2020 10.38, Greg Kroah-Hartman wrote: > >>> On Thu, Feb 13, 2020 at 02:35:18PM +0100, Rasmus Villemoes wrote: > >>>> On 13/02/2020 13.56, Greg Kroah-Hartman wrote: > >>>> > >>>>> Shouldn't this be /* fall through */ instead? > >>>>> > >>>>> Gustavo, what's the best practice here, I count only a few > >>>>> "fallthrough;" instances in the kernel, although one is in our coding > >>>>> style document, and thousands of the /* */ version. > >>>> > >>>> Yes, I went with the attribute/macro due to that, and the history is > >>>> that Linus applied Joe's patches directly > >>>> (https://lore.kernel.org/lkml/CAHk-=whOF8heTGz5tfzYUBp_UQQzSWNJ_50M7-ECXkfFRDQWFA@mail.gmail.com/), > >>>> so I assumed that meant the Penguin decided that the attribute/macro is > >>>> the right thing to do for new code, while existing comment annotations > >>>> can be left alone or changed piecemeal as code gets refactored anyway. > >>> > >>> But, to be fair, Gustavo went and fixed up thousands of these, with the > >>> /* */ version, not the attribute. > >>> > >>> Gustavo, can coverity notice the "fallthrough;" attribute properly? I > >>> don't want to start adding things that end up triggering > >>> false-positives. > >> > >> I'm not Gustavo, and I don't know the answer, but 1.5 years ago some guy > >> named greg k-h suggested that coverity does grok the fallthrough attribute: > >> > >> https://patchwork.kernel.org/cover/10651357/#22279095 > > > > I wouldn't trust anything that bum says :) > > > > Ok, I don't remember saying that at all, but I'll wait a day or two to > > get Gustavo's opinion befor applying the patch. > > > > We are good to go with the 'fallthrough' pseudo keyword. Linus is OK with > that. > > The comment annotations will eventually be transformed to "fallthrough;" Ok, thanks for the confirmation, will queue this up. greg k-h