Blame SOURCES/0015-fs-ntfs3-Fix-fall-through-warnings-for-Clang.patch
|
Kmods SIG |
8b815c |
From abfeb2ee2103f07dd93b9d7b32317e26d1c8ef79 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8b815c |
From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
|
|
Kmods SIG |
8b815c |
Date: Wed, 18 Aug 2021 17:21:46 -0500
|
|
Kmods SIG |
8b815c |
Subject: [Backport abfeb2ee2103] src: Fix fall-through warnings for Clang
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Fix the following fallthrough warnings:
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
src/inode.c:1792:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
|
|
Kmods SIG |
8b815c |
src/index.c:178:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
This helps with the ongoing efforts to globally enable
|
|
Kmods SIG |
8b815c |
-Wimplicit-fallthrough for Clang.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Link: https://github.com/KSPP/linux/issues/115
|
|
Kmods SIG |
8b815c |
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
|
|
Kmods SIG |
8b815c |
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
|
|
Kmods SIG |
8b815c |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
---
|
|
Kmods SIG |
8b815c |
src/index.c | 1 +
|
|
Kmods SIG |
8b815c |
src/inode.c | 1 +
|
|
Kmods SIG |
8b815c |
2 files changed, 2 insertions(+)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/index.c b/src/index.c
|
|
Kmods SIG |
8b815c |
index 9386c551e208204870363685b27826ccb60e1171..189d46e2c38db2696073df47d778e1e190cc0d1f 100644
|
|
Kmods SIG |
8b815c |
--- a/src/index.c
|
|
Kmods SIG |
8b815c |
+++ b/src/index.c
|
|
Kmods SIG |
8b815c |
@@ -175,6 +175,7 @@ static inline NTFS_CMP_FUNC get_cmp_func(const struct INDEX_ROOT *root)
|
|
Kmods SIG |
8b815c |
default:
|
|
Kmods SIG |
8b815c |
break;
|
|
Kmods SIG |
8b815c |
}
|
|
Kmods SIG |
8b815c |
+ break;
|
|
Kmods SIG |
8b815c |
default:
|
|
Kmods SIG |
8b815c |
break;
|
|
Kmods SIG |
8b815c |
}
|
|
Kmods SIG |
8b815c |
diff --git a/src/inode.c b/src/inode.c
|
|
Kmods SIG |
8b815c |
index bf51e294432efebf20f75821fb25d2048eb7a15b..a573c6e98cb800ffd13871caac92b7eef2954c26 100644
|
|
Kmods SIG |
8b815c |
--- a/src/inode.c
|
|
Kmods SIG |
8b815c |
+++ b/src/inode.c
|
|
Kmods SIG |
8b815c |
@@ -1789,6 +1789,7 @@ int ntfs_unlink_inode(struct inode *dir, const struct dentry *dentry)
|
|
Kmods SIG |
8b815c |
switch (err) {
|
|
Kmods SIG |
8b815c |
case 0:
|
|
Kmods SIG |
8b815c |
drop_nlink(inode);
|
|
Kmods SIG |
8b815c |
+ break;
|
|
Kmods SIG |
8b815c |
case -ENOTEMPTY:
|
|
Kmods SIG |
8b815c |
case -ENOSPC:
|
|
Kmods SIG |
8b815c |
case -EROFS:
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|