Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1468888pxb; Fri, 27 Aug 2021 09:28:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVS3GCV1hqz+gX4booBCLuPQniUq80omkARMTUhuMnld7i3MTVjvJTBDLUNYyAR5QFdnjz X-Received: by 2002:a02:93aa:: with SMTP id z39mr5113450jah.29.1630081708488; Fri, 27 Aug 2021 09:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630081708; cv=none; d=google.com; s=arc-20160816; b=Ib7vS8i47HBQ65LzFwUeTlDegaWSj078A30vRzFlDYynnFF26Z6W4Ytz6wmDaqWaLF kRO1AfBVmNFWxgZxfmWuOK3zDa3FErDVL53TqEURHMjSEYSiJaZuS3YaK5IQ2c/b8ma9 dG511FE+BSxwkGfSCxnkn1lAuRZT7eaMQCTiOJLKQZKACsKshd/uthyh99GoApI97YbB CgO56OvncN0mKjOhfN+MzMqSO2BjMgBboNPN+BBXc3UZ/gOOvA63V+bXpyF7F9DQ4Ztq Nq++mfZxgvXzQazQtcua9uPjHLvF9UJp5O1J5cxnZvj9KVrBBfMvwNdryWXGAX1kOZ5X vPVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=tt5mEXv8qlqB4YWly4mTmZV3s2uSzB94kC/w5/UcOAA=; b=QNxOGfm6lYV6tqrUd0/9hxR7loIF2Wx2Y+UNKJ3GyTXmUo0XVHT4kctajSe1kSJ6Y3 BFQgkAfvLx1d4G/Eao7zu1Yj45R3Go/chh0JjRFDHqIY7abae33JrgNwHPUjlk7L4nhg +MZ46b3+VdCHFFqpDa2jSlSJr5Txp30u+dNL9EiWWmGJC73TcDbaq7zH38fHP+h9zS1N d6P+mLuvJ92v/gmonGdXTL+guOjac0nt5WrSW32nyZ1ZNj0K9N4EiyWkaAZ37I/kRUoz VH4jNUvgAMlChiF4KmScfrX+4sKWOMGnJKznxrBi9k/FlCJ1jgQn1UdC+T+7bVsvZ5qO 6HtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=DnbMDwgJ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si6677462jav.88.2021.08.27.09.28.16; Fri, 27 Aug 2021 09:28:28 -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; dkim=pass header.i=@paragon-software.com header.s=mail header.b=DnbMDwgJ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234415AbhH0Q1v (ORCPT + 99 others); Fri, 27 Aug 2021 12:27:51 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:47972 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235911AbhH0Q1u (ORCPT ); Fri, 27 Aug 2021 12:27:50 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relaydlg-01.paragon-software.com (Postfix) with ESMTPS id 0E9BD820C9; Fri, 27 Aug 2021 19:27:00 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1630081620; bh=tt5mEXv8qlqB4YWly4mTmZV3s2uSzB94kC/w5/UcOAA=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=DnbMDwgJ1skFvRHRP9TsCDgd4tSsKgmEQOAvDWxEa+W9b5OnWPw9f4t7/OCOBrqtn k3W3blR5if8lKOGw2lazGBz/JWGXbnmh0jnM63d05DufaU1cwrGYZsoeOShVZy3jdX udFgsQTUT6Ysmc2lZU6CHSCuB3/9xLadKhEfhL8Q= Received: from vdlg-exch-02.paragon-software.com (172.30.1.105) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 27 Aug 2021 19:26:59 +0300 Received: from vdlg-exch-02.paragon-software.com ([fe80::586:6d72:3fe5:bd9b]) by vdlg-exch-02.paragon-software.com ([fe80::586:6d72:3fe5:bd9b%12]) with mapi id 15.01.2176.009; Fri, 27 Aug 2021 19:26:59 +0300 From: Konstantin Komarov To: "Gustavo A. R. Silva" CC: "ntfs3@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" Subject: RE: [PATCH][next] fs/ntfs3: Fix fall-through warnings for Clang Thread-Topic: [PATCH][next] fs/ntfs3: Fix fall-through warnings for Clang Thread-Index: AQHXlH8GgQxbFi/fhU2Z/WpnkAbBi6uHl4+Q Date: Fri, 27 Aug 2021 16:26:59 +0000 Message-ID: References: <20210818222146.GA312859@embeddedor> In-Reply-To: <20210818222146.GA312859@embeddedor> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.0.26] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Gustavo A. R. Silva > Sent: Thursday, August 19, 2021 1:22 AM > To: Konstantin Komarov > Cc: ntfs3@lists.linux.dev; linux-kernel@vger.kernel.org; Gustavo A. R. Si= lva ; linux- > hardening@vger.kernel.org > Subject: [PATCH][next] fs/ntfs3: Fix fall-through warnings for Clang >=20 > Fix the following fallthrough warnings: >=20 > fs/ntfs3/inode.c:1792:2: warning: unannotated fall-through between switch= labels [-Wimplicit-fallthrough] > fs/ntfs3/index.c:178:2: warning: unannotated fall-through between switch = labels [-Wimplicit-fallthrough] >=20 > This helps with the ongoing efforts to globally enable > -Wimplicit-fallthrough for Clang. >=20 > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > fs/ntfs3/index.c | 1 + > fs/ntfs3/inode.c | 1 + > 2 files changed, 2 insertions(+) >=20 > diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c > index 6aa9540ece47..76eae60b7fce 100644 > --- a/fs/ntfs3/index.c > +++ b/fs/ntfs3/index.c > @@ -175,6 +175,7 @@ static inline NTFS_CMP_FUNC get_cmp_func(const struct= INDEX_ROOT *root) > default: > break; > } > + break; > default: > break; > } > diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c > index bf51e294432e..a573c6e98cb8 100644 > --- a/fs/ntfs3/inode.c > +++ b/fs/ntfs3/inode.c > @@ -1789,6 +1789,7 @@ int ntfs_unlink_inode(struct inode *dir, const stru= ct dentry *dentry) > switch (err) { > case 0: > drop_nlink(inode); > + break; > case -ENOTEMPTY: > case -ENOSPC: > case -EROFS: > -- > 2.27.0 Hi Gustavo, thank you. Picked into ntfs3 tree. Best regards.