Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4809294ybv; Mon, 17 Feb 2020 06:23:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyxTMM5tMHqBUCZWXaMyiL9FFVO6A1KVH7bzbUyaFm2xTPmRm1sto6gccGeRlBL5fNzlPec X-Received: by 2002:a05:6808:7c7:: with SMTP id f7mr10350928oij.58.1581949424434; Mon, 17 Feb 2020 06:23:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581949424; cv=none; d=google.com; s=arc-20160816; b=dwu/Ez56A5Iatc8CQww1l4OEf+F4pUAlw8BFT4PCtBMqThCtlWlNnYKkLTFN2x8QFN 2bd+AHzq/N1nPh3P9TYI/QbRSrPt6Qzj+6zg5xoi0MaNOHV5hRVnWMvASdzi2rsT6IAE f8yrQmzb4LFf7foh84jD4K4pjWw3FGgaBWhhHGr9a2WpZC/K0MbV1gTAFRlzZJ7r6Kx4 4XAkgBMehzA3UtD+rITPcW+uw2JslQiIQgSA1I1DDeDWiECl6coylUc8b+awbW8LXVfO h8b2HW0gexRbSybsE/8T9CDAPyrODZcBWvmwAWaC9b6K/uZOtb7MQjfdPuj04RmV3kqw CRNg== 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=W4is5DK6BhUNrrhusyofz8b71UU36VS6xM4V9cQrRiI=; b=07L6fZKU78xt9LTMcZCtLm+UskbeaQtYI3UUwgXany5OjtOFCQvVGsZyQJ7whft7PF pYLa2Qcn/mbSkMLozxY6Li0cbJ4Lfg2mdYrUdhZ+3D+A/IEft/EZWLkFLzfw2Hw/zsTM 7QF5odtzYvCz73uLfEdMCcJk634LV8Oixdooqd9+XXB4ri6wDLzhnNPJjy9zPvnUVjmR TUjFZRjWX61uVIuf2YrujXhOxXGHt8XcySKMHoRMau2qyqnj6EsWMPoIoJVoqnb9l2V7 R+OR0bd4yI07OCvQngmsMf3Qr747kzP2NuQ+v73Xr7l4hRsZVhzqbAnawGHcCmCVbxM/ R0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tQbPYAQ2; 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 i9si273442otp.139.2020.02.17.06.23.32; Mon, 17 Feb 2020 06:23:44 -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=tQbPYAQ2; 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 S1727994AbgBQOSf (ORCPT + 99 others); Mon, 17 Feb 2020 09:18:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:48822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbgBQOSe (ORCPT ); Mon, 17 Feb 2020 09:18:34 -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 7170C2072C; Mon, 17 Feb 2020 14:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581949113; bh=h9Fe4kx1LHPMGbLI3vHtLy7xmcJooeeh18XrtJy7gTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tQbPYAQ2qjiB4TzqFAoMr+Q9wskUBh4nz8tdJYizoJtU7Yz81PB2jRa1ZeJVbeZnR q7ehePnA7v5f5IV0v+3/uOkylfgnj0EKn5/imhlpgDallDtV8M7RddiES88B9wFG7n +A+1DU7IAhDnKZsuDDR1V9HKrpkrFsKmNdGUhaVE= Date: Mon, 17 Feb 2020 15:18:31 +0100 From: Greg Kroah-Hartman To: Rasmus Villemoes , "Gustavo A. R. Silva" Cc: "Gustavo A. R. Silva" , 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: <20200217141831.GA1123892@kroah.com> References: <20200213085401.27862-1-linux@rasmusvillemoes.dk> <20200213125659.GB3325929@kroah.com> <6ab68169-dde6-b5ba-0909-fa685bd24aac@rasmusvillemoes.dk> <20200217093836.GA37937@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. thanks, greg k-h