Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp806940pxa; Wed, 5 Aug 2020 13:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIwdYMXTXfcgxGGqV6iwpS+8vH6LpH4wVIImTqmrzdjO1EM9gybLcUOgfsVVOTWvyUHMet X-Received: by 2002:a50:fa94:: with SMTP id w20mr1043178edr.82.1596658534136; Wed, 05 Aug 2020 13:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596658534; cv=none; d=google.com; s=arc-20160816; b=Bk5cheJJWkt+fNV0DfjB3mMDgRft2XP1+lO0KUM6NZSA/5X7gjRHLcwvxnoc51ONIK 8bU+1eeC3UYbo3868hvR2ICRYv+Cfw4J9rZSSEFngQ//eYgLVS/JsF83EZ0ZFnzpmp4u /9Si76Oq54AxGR3PjKSTwAKtmzlbCBxON/AMOw9YKDcxRvD55mQ/XcYGyoVE6TZXnAJI D3Q+89KPZNNCXBxIvw0WGROmzOgHmW5QuHqxyjn+29abeL35F7EBKBPLEtTJU7lYnWIU EJo+BAC9+oZfjIPiN9gcHHToeHSH+f3CMTXLCqsYQ4Xx/US8IB9lNF+1t6Ny8USMbHHz DxPw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=29PkptMrIh0wL9+y+cJ5jR3/l+AuSbnf80pfRQhXI6Y=; b=ZceVf62H3fSY0cQTVZNx8I4xB1o/+bqFREa/GYytry1V1rjHwEvsyrIAKkVyVrNhSL oHb8pEpsaGDuLTVQSnK6lB2UChjaqim1imSqPe4bmM1DjmevpV7II2sH922JP/qAyopp EHFnZgTEpWB4Bh7HQRCDkg6jXqZCSCz3HAfsNesLpST/rUik7yzVMygRfGL9psvClX9T arBZo/52pESLlponp1UKxg/+u2pd087GsZSd08xOyKwAYvm6m1UuuB5KVikm1G7pPPzf AjEUUsnqhRyWET8hu5cwjHMFhA4bgZpHYlv+Sa6bN3MJXHZii27YbJeGiJS2lujtaGXl l/dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si1566285edq.576.2020.08.05.13.15.11; Wed, 05 Aug 2020 13:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729650AbgHEUPF (ORCPT + 99 others); Wed, 5 Aug 2020 16:15:05 -0400 Received: from mail-lf1-f48.google.com ([209.85.167.48]:40840 "EHLO mail-lf1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbgHEQVC (ORCPT ); Wed, 5 Aug 2020 12:21:02 -0400 Received: by mail-lf1-f48.google.com with SMTP id m15so23907579lfp.7 for ; Wed, 05 Aug 2020 09:21:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=29PkptMrIh0wL9+y+cJ5jR3/l+AuSbnf80pfRQhXI6Y=; b=dTibp3nObfdWJnTarzU3qIoY1mtETKuafEGlU4yplAbFLJSCzNBimrDjRq/qATLpwS gRs5XYvsXYBDs85iMQJaMJQRLaCvYhUai0dMmyEauFaiwFHHM5xKoqrVoIAtaF+sBsv9 wrlfMeM2ce2OMAzsAeUO3ESADzXYC6ig7fRfprtPkoTxiNA9tIhVMeB1yypl1MY6p3mp UGmZwFoOfprFqE4faN1fOFRUYzhxotX54hnZlL8FebdhLBbD0BdBHG5l1J+JSrMniiOo G5QnVLjUarzMd4Mtdw6bUbrG2dxvg1wpMd9Gu3+rdwwMKWCJJLstxN9gtvRDR/OfryMJ 8kWQ== X-Gm-Message-State: AOAM531ibLZjCc7LsWpAa7uM/u6rmBpXFUIsblkzhg0llMncpC3J8X3Q wMhC4+Ft5+PU9Q3u7RS9ICw= X-Received: by 2002:a19:457:: with SMTP id 84mr1946291lfe.191.1596644459745; Wed, 05 Aug 2020 09:20:59 -0700 (PDT) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id a16sm1165711ljj.108.2020.08.05.09.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 09:20:58 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1k3MA2-00005N-PL; Wed, 05 Aug 2020 18:21:02 +0200 Date: Wed, 5 Aug 2020 18:21:02 +0200 From: Johan Hovold To: Alex Elder Cc: "Gustavo A. R. Silva" , Johan Hovold , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] greybus: Use fallthrough pseudo-keyword Message-ID: <20200805162102.GK3634@localhost> References: <20200727183258.GA28571@embeddedor> <63871608-e076-26b0-85df-cff11699c3a3@ieee.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 05, 2020 at 08:14:47AM -0500, Alex Elder wrote: > On 7/28/20 5:37 PM, Alex Elder wrote: > > On 7/27/20 1:32 PM, Gustavo A. R. Silva wrote: > >> Replace the existing /* fall through */ comments and its variants with > >> the new pseudo-keyword macro fallthrough[1]. > >> > >> [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through > > > > Thanks for the patch.? It looks good, but it raises > > another question I'd like discussion on. Sorry about the late reply on this. > It's been a week, and we heard back from Viresh (and Joe) on > this, but no one else. Viresh left out the break statement on > the last case of the switch statement intentionally, arguing > that it is not needed (much like a return statement at the end > of a void function). But he doesn't feel strongly enough > insist it should stay that way. I'm sure the others omitted > the break statement intentionally as well. I really don't mind break statements in the final case and often do add them, but I'm a bit reluctant to suggest that this is something that need "fixing". There are a ton of these all over the kernel, and I think we have too many opportunities for people to do mechanical clean ups already. Especially after Gustavo's work, the only real argument for adding them is mostly moot as the compiler would catch it if anyone adds a new case and forgets about the break statement. > Given no strong pushback, I'll ask you (Gustavo) to post a > second patch adding the missing break statements I described > (and look for any others I might have missed). If you would > prefer not to do that, just say so, and I will send out such > a patch myself. I'd probably just leave it as is, if only to not inspire others to send copy-cat "fixes". Johan