Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2871351pxa; Sat, 8 Aug 2020 02:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyED6aasJ8cY0Tp9MZ2f9akgHHpvBB5KSDwBuO7fjP+w7xqsnDGyFDh4IhPl6O7Y0iPVVhI X-Received: by 2002:a17:906:b1d0:: with SMTP id bv16mr13533886ejb.326.1596878466601; Sat, 08 Aug 2020 02:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596878466; cv=none; d=google.com; s=arc-20160816; b=i7QqZmDRclL9EvhBS2+TA6JsMhBax9/nsFL3r8scPpHd3IfOnmAsGbuxw97/kr4ZT2 nR9WtDBascd1S5yGA+ytorQ/c1mSAXGduHzo7mO+0LFrIjqL8ldoEOrnO2UbqhUqUnMr N1dX67s/XmMfL+loTRMZ41xNXlMK8zDKcwtogtDYJiYHXAaiaANQqIV2UsLHdaEx3mj9 1sVCEr62j+qeHhvx83na2q4BDd1lQpKwbliZ6HOWvUc/t4mIwsp/4Ff3mqLaWA+ysr/B m65Lp6JFx4Eu3h6Fl9EBXmQ2s6diLg0wreI3RhC7kSMzw+Gm2wAe4tt3HpuokmsRPMKD ADQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=awZKlTuG4vlyZEZ3UpAVF324oFvwT4vN7p5HY0ByyXs=; b=w83xZi40+Va3GGD11BT00A5YpFpL4AI9UMgBTbHb+RYNQxP/eYqxv8UtQih57qfF6J ldX2gtT76y+Qc9VuN3FHgE7izzRd1XsIpFKrwACSZHYCvvL/GUiqwHt3PWsi014HxFdZ /wL2LXJNlWh8HZoxZrKdETEA9lm0SxPdEiNYQnDIHzz8Ccmfh4CAsvrk+YbmWzT1GzXl BnxS2SfX36AF1emuzRBMmKB/hGeHyGS06HYhWAPW+Ts+1JZZ2I/rkE6cdMLyCQ7+tPOA toV5YktGSWCrfmPaRrspJDen17cCtJXtgVQ6U4tQjelBRu26wlaj8+iVfl3ESO+q1Wgl LlHg== 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 qu9si7275956ejb.688.2020.08.08.02.20.43; Sat, 08 Aug 2020 02:21:06 -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 S1726074AbgHHJTK (ORCPT + 99 others); Sat, 8 Aug 2020 05:19:10 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51104 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725853AbgHHJTJ (ORCPT ); Sat, 8 Aug 2020 05:19:09 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C8169DEA7AD9721ED9F6; Sat, 8 Aug 2020 17:19:07 +0800 (CST) Received: from huawei.com (10.175.101.6) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 8 Aug 2020 17:18:58 +0800 From: linmiaohe To: , CC: , , Subject: [PATCH] erofs: Convert to use the fallthrough macro Date: Sat, 8 Aug 2020 17:21:26 +0800 Message-ID: <1596878486-23499-1-git-send-email-linmiaohe@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miaohe Lin Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Hongxiang Lou Signed-off-by: Miaohe Lin --- fs/erofs/zmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/erofs/zmap.c b/fs/erofs/zmap.c index 7d40d78ea864..ae325541884e 100644 --- a/fs/erofs/zmap.c +++ b/fs/erofs/zmap.c @@ -359,7 +359,7 @@ static int z_erofs_extent_lookback(struct z_erofs_maprecorder *m, return z_erofs_extent_lookback(m, m->delta[0]); case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN: map->m_flags &= ~EROFS_MAP_ZIPPED; - /* fallthrough */ + fallthrough; case Z_EROFS_VLE_CLUSTER_TYPE_HEAD: map->m_la = (lcn << lclusterbits) | m->clusterofs; break; @@ -416,7 +416,7 @@ int z_erofs_map_blocks_iter(struct inode *inode, case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN: if (endoff >= m.clusterofs) map->m_flags &= ~EROFS_MAP_ZIPPED; - /* fallthrough */ + fallthrough; case Z_EROFS_VLE_CLUSTER_TYPE_HEAD: if (endoff >= m.clusterofs) { map->m_la = (m.lcn << lclusterbits) | m.clusterofs; @@ -433,7 +433,7 @@ int z_erofs_map_blocks_iter(struct inode *inode, end = (m.lcn << lclusterbits) | m.clusterofs; map->m_flags |= EROFS_MAP_FULL_MAPPED; m.delta[0] = 1; - /* fallthrough */ + fallthrough; case Z_EROFS_VLE_CLUSTER_TYPE_NONHEAD: /* get the correspoinding first chunk */ err = z_erofs_extent_lookback(&m, m.delta[0]); -- 2.19.1