Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp78962pxb; Wed, 18 Aug 2021 16:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznE6W5KQEEqWNnVD5Q4bcip7uJ12MOElw5rvMnilMOIZptIISMjuHteo/4nU0JvJEJGxfM X-Received: by 2002:a5d:8450:: with SMTP id w16mr8560584ior.141.1629329413603; Wed, 18 Aug 2021 16:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629329413; cv=none; d=google.com; s=arc-20160816; b=ooKXotL5lECtKHgvHhbDxyW4o5zluXhTpM6O03q9NBmCxLsqb8Avk4DBVSz/36xQha 6X0uLUBEqwi2kSfmTXbAmI7wtsceaRO9PQAwOS0RRpARfWjDS5DduqC1CFnsZuyEfmc+ xSDNr6lqWwfCBM0KxMigPwgeb6Tgnl/mPpKn4NNwRn6X8ZizAmTK1pmjXAhpjXCscKUd PjDrsRlenDo5hmnXzCuy2v69h6yMYdCmI0GjEiwSJXFP4GTBgQKYqM9dujcpMwxJf30x D3yEZKmoh6cZlGPALV7myvCfeiCpT56NesZZkcPGvhRxXxpFlsYyoySsWsWfDfRuxvaY AI+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=IxWM8BxU2iNOzklxCDm3YDHwft0P93MvIqA9PqVWqzs=; b=DMK3Oqg9/R5wSH2wn4Punp7+edjvP+gXQvPRhfS4i7c4pfc6Z0xtrTF131XhPBTwNk Um/chMWLbIVxMWfbVw1U9WxoAmcAtMkwkEADVn1v8vXMV3bIHcx7+7YcP3BtNd1wkx81 x9++Y2HJqzGeERcSmmmtYJKL8C6yYNzqT2cU4tt+OaLs4dVIEZ0YvsUz0kY/YhwbzTHt Cpx7vvpR9oeDY7OUTDtcu+egyRlo3MjXb/Qwu/3UWlYgQvaxQ+sK5bYuz1UO+zNX+vwx BTeuG5xF1Iy39vl9cLs0uk1+W0v/95N8qxkIZdi+kXvP2drKhHJEJXXUJpiCldeXpv4V zcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tl0CnCvL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si1218383ioh.72.2021.08.18.16.30.01; Wed, 18 Aug 2021 16:30:13 -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=@kernel.org header.s=k20201202 header.b=tl0CnCvL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234859AbhHRX3z (ORCPT + 99 others); Wed, 18 Aug 2021 19:29:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:39050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232862AbhHRX3z (ORCPT ); Wed, 18 Aug 2021 19:29:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 42C54610CE; Wed, 18 Aug 2021 23:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629329359; bh=m455H5KlC5gIpoNw+1URlD4LYf70e3UDXeBkiP2eyQA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tl0CnCvLd3z5arNC7oa/KNSdxvUH7B9AJtnkrwV7j4o5kSJa18jC1oCzGOKbh+gki muCnWDpPg30sDEBq8Andp9inq9ZpWAu+G1iR/4DSUzl5xMF5/C5VehuQ4IHu45fFoz FYh9tX2JHQkppr+HeimHvh9Ya3xZ/OKsASMkrmiy55KuKzZPWeFERtp+uBQAocLMGw zDNIyECkGE5CTqySM44GsKdABFDQyNOR8YqsRDpFIopQaUSVgUwPoOYAsQYuT+RtE3 ndWTRt9KPmtBPdSsi2C4+ywt5W5EvrQcG2OjJmGAAU4Rl2gtim1/w13HffvDUtSK/J PotJ/5mCT6amg== Subject: Re: [PATCH][next] fs/ntfs3: Fix fall-through warnings for Clang To: "Gustavo A. R. Silva" , Konstantin Komarov Cc: ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20210818222146.GA312859@embeddedor> From: Nathan Chancellor Message-ID: <6b9a6c49-1b32-c5bc-6313-b0a888e93923@kernel.org> Date: Wed, 18 Aug 2021 16:29:18 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210818222146.GA312859@embeddedor> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/2021 3:21 PM, Gustavo A. R. Silva wrote: > Fix the following fallthrough warnings: > > 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] > > This helps with the ongoing efforts to globally enable > -Wimplicit-fallthrough for Clang. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Nathan Chancellor > --- > fs/ntfs3/index.c | 1 + > fs/ntfs3/inode.c | 1 + > 2 files changed, 2 insertions(+) > > 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 struct dentry *dentry) > switch (err) { > case 0: > drop_nlink(inode); > + break; > case -ENOTEMPTY: > case -ENOSPC: > case -EROFS: >