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