From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DE64C28CF6 for ; Wed, 1 Aug 2018 06:38:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CCB320841 for ; Wed, 1 Aug 2018 06:38:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CCB320841 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387505AbeHAIW4 (ORCPT ); Wed, 1 Aug 2018 04:22:56 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:10201 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387419AbeHAIW4 (ORCPT ); Wed, 1 Aug 2018 04:22:56 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 295727C263CE6; Wed, 1 Aug 2018 14:38:44 +0800 (CST) Received: from szvp000100637.huawei.com (10.162.55.131) by smtp.huawei.com (10.3.19.214) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 1 Aug 2018 14:38:39 +0800 From: Gao Xiang To: Greg Kroah-Hartman , CC: , , , , , , , Gao Xiang Subject: [PATCH 1/2] staging: erofs: add the missing break in z_erofs_map_blocks_iter Date: Wed, 1 Aug 2018 14:38:30 +0800 Message-ID: <1533105511-26197-1-git-send-email-gaoxiang25@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1532915461-2512-1-git-send-email-gaoxiang25@huawei.com> References: <1532915461-2512-1-git-send-email-gaoxiang25@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.162.55.131] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a missing break after adding the default case. Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- Hi Greg, There are two erofs bugfix & cleanup patches ready for staging-next upstream. The original preview thread: https://lists.ozlabs.org/pipermail/linux-erofs/2018-July/000281.html https://lists.ozlabs.org/pipermail/linux-erofs/2018-August/000294.html With regard to linux-next conflicts, there are also patches to solve them. Chao will send them in batch to Stephen later. Thanks, Gao Xiang drivers/staging/erofs/unzip_vle.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c index bd2d7a8..6d3ab31 100644 --- a/drivers/staging/erofs/unzip_vle.c +++ b/drivers/staging/erofs/unzip_vle.c @@ -1596,10 +1596,10 @@ int z_erofs_map_blocks_iter(struct inode *inode, cluster_type = vle_cluster_type(di); switch (cluster_type) { - case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN: + case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN: /* fallthrough */ if (ofs_rem >= logical_cluster_ofs) map->m_flags ^= EROFS_MAP_ZIPPED; - case Z_EROFS_VLE_CLUSTER_TYPE_HEAD: + case Z_EROFS_VLE_CLUSTER_TYPE_HEAD: /* fallthrough */ if (ofs_rem == logical_cluster_ofs) { pcn = le32_to_cpu(di->di_u.blkaddr); goto exact_hitted; @@ -1624,6 +1624,7 @@ int z_erofs_map_blocks_iter(struct inode *inode, ofs = vle_get_logical_extent_head(inode, mpage_ret, &kaddr, lcn, &pcn, &map->m_flags); mpage = *mpage_ret; + break; default: errln("unknown cluster type %u at offset %llu of nid %llu", cluster_type, ofs, EROFS_V(inode)->nid); -- 1.9.1