Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp37868pxb; Wed, 18 Aug 2021 15:19:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIN9jJDa/NcSAh+WIXuDW1dpV2GbvIuZLv5gRQjVjgPeC/1b8T8VLatoEJe6fHTQOStwmr X-Received: by 2002:a05:6e02:12a2:: with SMTP id f2mr7504002ilr.222.1629325182214; Wed, 18 Aug 2021 15:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629325182; cv=none; d=google.com; s=arc-20160816; b=CD0OkpRbpk9r52K73187xQbtWSQ+2SqCddde5YgG7VcTEyxxA00YuWT6MabQxz7qG2 gOtbkbPs3D8d1YLK/4HTA8uyQd0E3nRF2QqyLQ3c/+sC/BzTANZ6W6gFlwSlejRBy5H+ CBcf3yaPZ7FLnMxGrUuVvC3wQpAAlYQuWFZdwJGuxVVRxbQg7Qj5I3kbwL3tP5L8dGbv WCwanMOG4pG6MSi8Ae51z4IXol78jwSbFVE1OA9ZUVNiqhpEurfArdEu4pZ7AJqto2Tb /6at0vjthf3mwxnNG8/W/ktDnuDxPj2WBUD86JkSN2ZbkDRL7o1bGF8gKV4te1pJYcvO yrpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=WRheLzRRoJi7q1qWZj+D11uG+38I8bCIwCjzeiqQf80=; b=zptO2R6lvXr4tlHpwF+SzzJKd8pPa/US9TKqgF65bBLxG73XVJVq97KKxHns1wwV1P O7W92K9ZVq48ZmAz+yVAkUqSsuTDbHVqbXh8jzChTBbZ9iSQR+bk1yzX9rkbCFHIklPA MfY8myQE+8/9Ea1HtN258VlWcLX6dTmZfdt4CCTY/mRV7Ia+vH1gGtrGcaILpqIygiki z2C9OJJSG89QgRa+lOQbVKZXGUEr89lIbIoj+H7YfA6ALf7S9SJOPk/1C2AkgBIHYLbd 0MjBEcmG5JYgzIW8ahW/Ixh2xYbW5feCizlhAO7RBXGSHdZYi+SqRpwxhOWqGxNQvLUO EeNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SFp6eQ+6; 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 g14si1098127jat.28.2021.08.18.15.19.28; Wed, 18 Aug 2021 15:19:42 -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=SFp6eQ+6; 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 S234569AbhHRWTT (ORCPT + 99 others); Wed, 18 Aug 2021 18:19:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:48186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234537AbhHRWTR (ORCPT ); Wed, 18 Aug 2021 18:19:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9B766103A; Wed, 18 Aug 2021 22:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629325122; bh=KOCNCGojM0O4SwxHOYxviS4ZUt0Y0JF+AQd++GCqAlI=; h=Date:From:To:Cc:Subject:From; b=SFp6eQ+6hDi/yXdwmyXgKyDYTQ9ioFLmFf+oqJ9DITCzQey1WzJm72NBrJ7U1RyW3 E+ZUY+m10ivFV+wzX0LtnY5YrlQlP+HdTUFRhuS2AflluOog4FQmGxZ24AYZjtXU3g sab8Xd/qC5/C8fTgOHLzSGbev52KgVON6AE9oxJV+vaOuRmtlMkf7OBMCud/TIDbLK JJj5SPKneo0Q57QnXbBjj+ZojpSbke4PvXGdaFL551kwNyOqtTbcmKVou01k+9raPQ wW4tcAPxDCtd5/dFT23V4jjn1ETRSpD13NzijwGjriLpBCESnq0VlbFty3a/rDFo3m 6Wg4lbsSeqtWw== Date: Wed, 18 Aug 2021 17:21:46 -0500 From: "Gustavo A. R. Silva" To: Konstantin Komarov Cc: ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] fs/ntfs3: Fix fall-through warnings for Clang Message-ID: <20210818222146.GA312859@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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: -- 2.27.0