Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp314700pxa; Wed, 19 Aug 2020 01:57:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaKx4DcQKlKxNnlDsR0x54nD7RXbQ4V94zTnrWF+ka9CtkmDezNmutsO882X9twxtzIntj X-Received: by 2002:a05:6402:3193:: with SMTP id di19mr24122624edb.224.1597827475864; Wed, 19 Aug 2020 01:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597827475; cv=none; d=google.com; s=arc-20160816; b=O8QK7X4PC2a4b5Ckf5NHwnPonMTmm0K9B+svDvPThDmxt8RG3E/7Ip/gfT52jE04tE F7nB9LlmoWoqjBPnxVxaO4I1gL8FztDG+on1eMgiMYWnb1L7rXPGDelh43vImDezjgky RGAFrIQufmM983//Q+OQnNm0W00dF6xx4NS7giNmEoSuLP5S9NqVLuoA5IDt0EwS3E14 H8nu12UI4M7TYufEhOtQYET33DIda/SC+AqkM6ZCbIDpNgh35PrZbpWfJGCTPnkRsfuH NT1zb77QZp091DYWVg4K1rlNK8ELYnMhFQnIDIIlOl0/iJNSeXDoSDIa/lCI9fLjIr6y ZBaQ== 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 :message-id:date:subject:cc:to:from; bh=A+KEZ3dgOhKGgzZ8nUphmvATTCNBGupkLwXUFwyymF4=; b=ZGiOkJZVeSQslFmJJVj6qsmNehiSqSEMlLevsUqoL7h/Go6w2nKITKxp+3dCZjJ4uT iPmgMAMVBN89odBV6/P3BlMKGw4UECyB9SsZ7GBD2zqJwDr+GEaBPtrG1ZYTP0H6Dn+P ugfgHI44WfpH0jZElbYH943On5wAxYpOe9F9ZQvNr81tc+/0M/d+G6rjFsfBwtCKw637 0hPy6fiEtReGu8qOFyJ7Rdjoi+p79T0QuVGw8T6Fh5UbGoNCrq2PEAUg6V1KBlJqH9co HMl1WXVIUYYfAunrIrxYGNvWATQUuHCPL7BP04M+883wggX2H1LkyRnfNEwNCu7b1UO8 s6jw== 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 b1si15914291ejb.647.2020.08.19.01.57.32; Wed, 19 Aug 2020 01:57:55 -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 S1727838AbgHSIzI (ORCPT + 99 others); Wed, 19 Aug 2020 04:55:08 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9845 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726794AbgHSIwL (ORCPT ); Wed, 19 Aug 2020 04:52:11 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3262A7CE5FA0FD472EB2; Wed, 19 Aug 2020 16:51:57 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Wed, 19 Aug 2020 16:51:49 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH] block: Convert to use the preferred fallthrough macro Date: Wed, 19 Aug 2020 04:50:44 -0400 Message-ID: <20200819085044.41887-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Hongxiang Lou Signed-off-by: Miaohe Lin --- block/badblocks.c | 2 +- block/bfq-iosched.c | 4 ++-- block/blk-wbt.c | 2 +- block/ioprio.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/block/badblocks.c b/block/badblocks.c index 2e5f5697db35..d39056630d9c 100644 --- a/block/badblocks.c +++ b/block/badblocks.c @@ -525,7 +525,7 @@ ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, case 3: if (newline != '\n') return -EINVAL; - /* fall through */ + fallthrough; case 2: if (length <= 0) return -EINVAL; diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index a4c0bec920cb..c34b090178a9 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -4980,7 +4980,7 @@ bfq_set_next_ioprio_data(struct bfq_queue *bfqq, struct bfq_io_cq *bic) pr_err("bdi %s: bfq: bad prio class %d\n", bdi_dev_name(bfqq->bfqd->queue->backing_dev_info), ioprio_class); - /* fall through */ + fallthrough; case IOPRIO_CLASS_NONE: /* * No prio set, inherit CPU scheduling settings. @@ -5112,7 +5112,7 @@ static struct bfq_queue **bfq_async_queue_prio(struct bfq_data *bfqd, return &bfqg->async_bfqq[0][ioprio]; case IOPRIO_CLASS_NONE: ioprio = IOPRIO_NORM; - /* fall through */ + fallthrough; case IOPRIO_CLASS_BE: return &bfqg->async_bfqq[1][ioprio]; case IOPRIO_CLASS_IDLE: diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 0fa615eefd52..fd410086fe1d 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -528,7 +528,7 @@ static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio) if ((bio->bi_opf & (REQ_SYNC | REQ_IDLE)) == (REQ_SYNC | REQ_IDLE)) return false; - /* fallthrough */ + fallthrough; case REQ_OP_DISCARD: return true; default: diff --git a/block/ioprio.c b/block/ioprio.c index 77bcab11dce5..04ebd37966f1 100644 --- a/block/ioprio.c +++ b/block/ioprio.c @@ -71,7 +71,7 @@ int ioprio_check_cap(int ioprio) case IOPRIO_CLASS_RT: if (!capable(CAP_SYS_ADMIN)) return -EPERM; - /* fall through */ + fallthrough; /* rt has prio field too */ case IOPRIO_CLASS_BE: if (data >= IOPRIO_BE_NR || data < 0) -- 2.19.1