Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp200850ybt; Tue, 7 Jul 2020 20:29:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+ZVDmO02xZ+/qb4vbQLFX0NbjP7UZmGcimUHB8ZF4TtU+glGWx1AhwcSDOsP7An9GJzXg X-Received: by 2002:a05:6402:c82:: with SMTP id cm2mr54928597edb.293.1594178958920; Tue, 07 Jul 2020 20:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594178958; cv=none; d=google.com; s=arc-20160816; b=zIGtC/Xn7lq152h8T09t7LqKsNAGBmMCN6UMe0K9bBv21OfCYO4aMrraElZNYyK6BV HO5zmO5F0xZYXgujBIo/3da84BrTOLRyjXjXSO6xbOP6oP01AI7D6HXCE0+7hSMbsTtP UD+wkFrZhxrXMibM0upofaF09rKffO52vWUZ42UVrHdVOKqyHTXzgQ++NPj1QWJYJwEk 9SsGEbOWeoYf6fxoeg+Sq0BbEPrDFKkZap1b01qAuz+sFicn4P/r6AFOwUpWwj2/ZRzq /8vun5nXy5pgk4rK9JhG/bB641nnw3UxPXGfIYj+A/Kh8UjfX2X6spKbYCUycNnR7KfC PVtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=dbPoDIobwC4WNVZK6nlX8fOHQUq4r+Yp4IOxp0uUD+k=; b=zC49scm4cLnf6vIrLXSUMDq42el/iobjODBDIhn78xVzGKq3TRQGGThGWyrqYJIpXM NeigpFyZTkBS7/ELhLTrBeUYNRpWb0goxugaJNaK+bkfGA+tCQ2t9J959IJyGOxTHNGh WIBWADQr+SQ/762MqLdTpWgpElJct6H1Wpv+wUjoVNflTPYkO8RWSwrSZV0na1h2PMl3 CB3D9bUsgPvC70eKItO92HYN8v5UxOWuFHdCHQV06FYfaBU3vQmeY3ww5xjGUoc44w1y vcGSWcCGVPEuNFA+d2y7ZyrjiJfNx4WtgnDTN0Q7bou+dVeYuN3HujZH1MEArD7EBdt7 fnWg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 94si16132921eda.384.2020.07.07.20.28.54; Tue, 07 Jul 2020 20:29:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729238AbgGHD1Q (ORCPT + 99 others); Tue, 7 Jul 2020 23:27:16 -0400 Received: from smtprelay0234.hostedemail.com ([216.40.44.234]:50474 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728732AbgGHD1P (ORCPT ); Tue, 7 Jul 2020 23:27:15 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id AF53C180A7FE1; Wed, 8 Jul 2020 03:27:14 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3868:3870:3871:3872:3873:4321:4605:5007:7903:9040:10004:10400:10848:11026:11232:11657:11658:11914:12043:12297:12438:12679:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21451:21627:21990:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: scent31_0601c2926eb9 X-Filterd-Recvd-Size: 1944 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Wed, 8 Jul 2020 03:27:13 +0000 (UTC) Message-ID: <1c37340fba4afb910a37cae43182f6c48302fa28.camel@perches.com> Subject: Re: [PATCH][next] drm/nouveau: Use fallthrough pseudo-keyword From: Joe Perches To: Ben Skeggs , "Gustavo A. R. Silva" Cc: Ben Skeggs , David Airlie , Daniel Vetter , ML nouveau , LKML , ML dri-devel Date: Tue, 07 Jul 2020 20:27:12 -0700 In-Reply-To: References: <20200707173628.GA29695@embeddedor> 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-07-08 at 13:22 +1000, Ben Skeggs wrote: > On Wed, 8 Jul 2020 at 03:31, 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. > I really like this! I was not a fan of explicitly marking those with comments. > > Thank you, taken in my tree. [] > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c [] > > @@ -932,7 +932,7 @@ nv50_dp_bpc_to_depth(unsigned int bpc) > > switch (bpc) { > > case 6: return 0x2; > > case 8: return 0x5; > > - case 10: /* fall-through */ > > + case 10: fallthrough; IMO: this comment/fallthrough should be removed instead.