Skip to content

Commit

Permalink
fs/ntfs3: Fix fall-through warnings for Clang
Browse files Browse the repository at this point in the history
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: KSPP/linux#115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
  • Loading branch information
GustavoARSilva authored and xanmod committed Aug 31, 2021
1 parent dba4116 commit 208e2b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/ntfs3/index.c
Expand Up @@ -175,6 +175,7 @@ static inline NTFS_CMP_FUNC get_cmp_func(const struct INDEX_ROOT *root)
default:
break;
}
break;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions fs/ntfs3/inode.c
Expand Up @@ -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:
Expand Down

0 comments on commit 208e2b5

Please sign in to comment.