Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2090711ybh; Sun, 8 Mar 2020 21:53:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtltapJOq6laUc8R5psw847LHibNi7VZvfu2lj1xe4cxerJZ83F2cAltBXZJ7gtPoer3Gac X-Received: by 2002:a9d:7d89:: with SMTP id j9mr3291570otn.47.1583729613832; Sun, 08 Mar 2020 21:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583729613; cv=none; d=google.com; s=arc-20160816; b=0XVkP42ltCsCLKVE4jB2lPfZA95e1NcahrK28dYSRELN3Kr+hTwwYX6i1ol11iMUaj NB2yvnr65c2slkQGkWJhAP7bqHYWPSp8l+V4q/XaXc+6Yz5GoXS20QcVFo0IpXTMv6DA YaOuvAzqdppqEuGd5s3oEE1UOJNh2I4lMsKGseH4V+A/fxy96dCOOISS4FWMnm/d1Ybv GDIMl41301Fh7WBrqvTvpGUWdUmqeKwLU3ywN54q/HDUumA4jgFNQ7jgh7j3ElUj4vDD vfealy4WciKkoeS9AmstkdCx2RBCjqIebLYzweak24EVFixVPFRTE+fq6ZA0MLmPoG9b rfiw== 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=97xEUIJatZS2eeAKxgwzqRUUNSP/OYM5oTt4ZxUmncc=; b=ZTqM9TSZO8ERmnEcm+mrOuN8BiYUdzFXSyBzA/J4RIJjk2Ur5BWwFhgQt7u152v1iU usm0Eif9XDX0o8/KfsU6y/9BoayXsacx9v8Ns9qf2kk1M0SUQcybzkgXbor6WrbxCLS9 NC0A497IRnbpyUQwsuNZ1nOdoAwkEFOWZm7CGiHZqdzN/MACYmmFleUYc4UUqPFvYMR7 HjNo9mK0X+HXAd4TJ8E5DAFNMzTaCbpdVCSt7wzboBz08nVz0h3zAQhepafEhY01NZlA PNFHVX76J6ydxCbM3X/R2q9tp3bSXMsSCbl2bJ1Fe/tJAnIWC8wxmvBdiINHzHiBzif/ 4xvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c8si5864973oto.95.2020.03.08.21.53.21; Sun, 08 Mar 2020 21:53:33 -0700 (PDT) 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; 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 S1726215AbgCIEwv (ORCPT + 99 others); Mon, 9 Mar 2020 00:52:51 -0400 Received: from smtprelay0131.hostedemail.com ([216.40.44.131]:36497 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725811AbgCIEwu (ORCPT ); Mon, 9 Mar 2020 00:52:50 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 4D777837F24A; Mon, 9 Mar 2020 04:52:49 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3872:3874:4321:5007:6742:7903:10004:10400:10848:11026:11232:11658:11914:12297:12740:12760:12895:13019:13069:13095:13311:13357:13439:14096:14097:14659:14721:21080:21433:21627:30054: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: note65_52936ebc40606 X-Filterd-Recvd-Size: 2288 Received: from XPS-9350.home (unknown [47.154.118.177]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Mon, 9 Mar 2020 04:52:47 +0000 (UTC) Message-ID: <84f3c9891d4e89909d5537f34ea9d75de339c415.camel@perches.com> Subject: Re: [PATCH] mm: Use fallthrough; From: Joe Perches To: Sergey Senozhatsky Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Vladimir Davydov , Hugh Dickins , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Date: Sun, 08 Mar 2020 21:51:07 -0700 In-Reply-To: <20200309041551.GA1765@jagdpanzerIV.localdomain> References: <20200308031825.GB1125@jagdpanzerIV.localdomain> <5f297e8995b22c9ccf06d4d0a04f7d9a37d3cd77.camel@perches.com> <20200309041551.GA1765@jagdpanzerIV.localdomain> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 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 Mon, 2020-03-09 at 13:15 +0900, Sergey Senozhatsky wrote: > On (20/03/07 19:54), Joe Perches wrote: > > On Sun, 2020-03-08 at 12:18 +0900, Sergey Senozhatsky wrote: > > > On (20/03/06 23:58), Joe Perches wrote: > > > [..] > > > > --- a/mm/mempolicy.c > > > > +++ b/mm/mempolicy.c > > > > @@ -907,7 +907,6 @@ static void get_policy_nodemask(struct mempolicy *p, nodemask_t *nodes) > > > > > > > > switch (p->mode) { > > > > case MPOL_BIND: > > > > - /* Fall through */ > > > > case MPOL_INTERLEAVE: > > > > Consecutive case labels do not need an interleaving fallthrough; > > > > ie: ditto > > I see. Shall this be mentioned in the commit message, maybe? I've no real opinion about that necessity. fallthrough commments are relatively rarely used as a separating element between case labels. It's by far most common to just have consecutive case labels without any other content. It's somewhere between 500:1 to 1000:1 in the kernel.