Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp272567ybg; Tue, 28 Jul 2020 05:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyBbExbxmHYO/1vcTiwJVTV4qJmbiMhqFsq0rhI/m/xAvLjcb9Ji+3ucHRSzl3CAdd9a05 X-Received: by 2002:a17:906:af1a:: with SMTP id lx26mr9206067ejb.415.1595940608854; Tue, 28 Jul 2020 05:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595940608; cv=none; d=google.com; s=arc-20160816; b=jRU+zGOsezcLa4jxptqT6mGYbhfgomuU5Cp2rxmlmF4k47tE1KWP1xt/Vqyyz6OePA LHLBYa2PNwfy22Y4h0s3Jb75YTUf/DYmotMvawAzHhWgNVvLrdnIxgGaUJWFWTLUxX0a WFxX6+L63H1qrWTaiu4NRDKwN1yEwiqXEB5IOalJGuaCFwPy/6Lr2gNqlZkm2B2V/kRr gWDvMR2XaZ+SOVk8uM+vIx2QFO7pSiUXYYeLR2FCRVCS8yHKJKBnPFM5ZybmURwvKPKi V0+xvnZHnLcZHdAzbx5H2cJ3JL74tMMWXzJaMKQQ0TSG1rHaQgj7/pYmk0XmrQr3jEAc DFiA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=grq/MOlkO1TgMLiS2Qt2t5zEfwks4xadPinzlqu16A0=; b=Ggb15FIIWLRN5CWrzeoJzehp500lSC2ES4NxXQBFU4kk9JFISrjOS+DtyR7dbNXLMW 8GzWTw2UQaeyl9RTvPowE8Q0zU7dWf/1XvfiR6UQQC6Lq2Jhtbyt5eI9sYsUEUvs6lAL uzdu6hm9NgO33ALT6EjmRlBEItnY1m9hAwFdzBiMpZuJD/XyxRnIMf8F+i3YgSoSRMfH 2QBrdMjrV/f1U0cOU0teNVRMBjsTtPtmxZrwrt5WVGHVVbF7yuPTIBSRjhk78azAOkJZ H5bFkleEaro2g62S3J4iAQjpLv5vtA8YVJHH8VLx1jFWLE0b1D8YsL+ypGjV+U4U25+n KzGg== 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 e9si7541046edn.579.2020.07.28.05.49.46; Tue, 28 Jul 2020 05:50:08 -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 S1729895AbgG1Msn (ORCPT + 99 others); Tue, 28 Jul 2020 08:48:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:60562 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729379AbgG1Msm (ORCPT ); Tue, 28 Jul 2020 08:48:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A932DAD18; Tue, 28 Jul 2020 12:48:51 +0000 (UTC) Subject: Re: [PATCH v2][next] bcache: Use fallthrough pseudo-keyword To: "Gustavo A. R. Silva" Cc: Kent Overstreet , linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200727230418.GA14028@embeddedor> From: Coly Li Autocrypt: addr=colyli@suse.de; keydata= mQINBFYX6S8BEAC9VSamb2aiMTQREFXK4K/W7nGnAinca7MRuFUD4JqWMJ9FakNRd/E0v30F qvZ2YWpidPjaIxHwu3u9tmLKqS+2vnP0k7PRH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QI8BBgBCAAmAhsMFiEE6j5FL/T5SGCN6PrQxzkHk2t9+PwFAlxHziAFCRj7 5/EACgkQxzkHk2t9+PxgfA//cH5R1DvpJPwraTAl24SUcG9EWe+NXyqveApe05nk15zEuxxd e4zFEjo+xYZilSveLqYHrm/amvQhsQ6JLU+8N60DZHVcXbw1Eb8CEjM5oXdbcJpXh1/1BEwl 4phsQMkxOTns51bGDhTQkv4lsZKvNByB9NiiMkT43EOx14rjkhHw3rnqoI7ogu8OO7XWfKcL CbchjJ8t3c2XK1MUe056yPpNAT2XPNF2EEBPG2Y2F4vLgEbPv1EtpGUS1+JvmK3APxjXUl5z 6xrxCQDWM5AAtGfM/IswVjbZYSJYyH4BQKrShzMb0rWUjkpXvvjsjt8rEXpZEYJgX9jvCoxt oqjCKiVLpwje9WkEe9O9VxljmPvxAhVqJjX62S+TGp93iD+mvpCoHo3+CcvyRcilz+Ko8lfO hS9tYT0HDUiDLvpUyH1AR2xW9RGDevGfwGTpF0K6cLouqyZNdhlmNciX48tFUGjakRFsxRmX K0Jx4CEZubakJe+894sX6pvNFiI7qUUdB882i5GR3v9ijVPhaMr8oGuJ3kvwBIA8lvRBGVGn 9xvzkQ8Prpbqh30I4NMp8MjFdkwCN6znBKPHdjNTwE5PRZH0S9J0o67IEIvHfH0eAWAsgpTz +jwc7VKH7vkvgscUhq/v1/PEWCAqh9UHy7R/jiUxwzw/288OpgO+i+2l11Y= Message-ID: <9c8fa79f-a34a-1e3d-10ed-819bb05e8b30@suse.de> Date: Tue, 28 Jul 2020 20:48:36 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200727230418.GA14028@embeddedor> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/28 07:04, 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 > > Signed-off-by: Gustavo A. R. Silva I am OK with it, add it to my second for-next series. Thanks. Coly Li > --- > Changes in v2: > - Add missing semicolon. > > drivers/md/bcache/journal.c | 2 +- > drivers/md/bcache/util.c | 14 +++++++------- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c > index 77fbfd52edcf..c1227bdb57e7 100644 > --- a/drivers/md/bcache/journal.c > +++ b/drivers/md/bcache/journal.c > @@ -608,7 +608,7 @@ static void do_journal_discard(struct cache *ca) > ca->sb.njournal_buckets; > > atomic_set(&ja->discard_in_flight, DISCARD_READY); > - /* fallthrough */ > + fallthrough; > > case DISCARD_READY: > if (ja->discard_idx == ja->last_idx) > diff --git a/drivers/md/bcache/util.c b/drivers/md/bcache/util.c > index 62fb917f7a4f..ae380bc3992e 100644 > --- a/drivers/md/bcache/util.c > +++ b/drivers/md/bcache/util.c > @@ -33,27 +33,27 @@ int bch_ ## name ## _h(const char *cp, type *res) \ > case 'y': \ > case 'z': \ > u++; \ > - /* fall through */ \ > + fallthrough; \ > case 'e': \ > u++; \ > - /* fall through */ \ > + fallthrough; \ > case 'p': \ > u++; \ > - /* fall through */ \ > + fallthrough; \ > case 't': \ > u++; \ > - /* fall through */ \ > + fallthrough; \ > case 'g': \ > u++; \ > - /* fall through */ \ > + fallthrough; \ > case 'm': \ > u++; \ > - /* fall through */ \ > + fallthrough; \ > case 'k': \ > u++; \ > if (e++ == cp) \ > return -EINVAL; \ > - /* fall through */ \ > + fallthrough; \ > case '\n': \ > case '\0': \ > if (*e == '\n') \ >