* [PATCH v1 1/1] mnt: Remove dead code which might prevent from building
@ 2025-10-24 13:23 Andy Shevchenko
2025-10-29 14:57 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2025-10-24 13:23 UTC (permalink / raw)
To: Christian Brauner, Al Viro, linux-fsdevel, linux-kernel, llvm
Cc: Jan Kara, Nathan Chancellor, Nick Desaulniers, Bill Wendling,
Justin Stitt, Andy Shevchenko
Clang, in particular, is not happy about dead code:
fs/namespace.c:135:37: error: unused function 'node_to_mnt_ns' [-Werror,-Wunused-function]
135 | static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node)
| ^~~~~~~~~~~~~~
1 error generated.
Remove a leftover from the previous cleanup.
Fixes: 7d7d16498958 ("mnt: support ns lookup")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
fs/namespace.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/fs/namespace.c b/fs/namespace.c
index d82910f33dc4..9145bb02e9b7 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -132,16 +132,6 @@ EXPORT_SYMBOL_GPL(fs_kobj);
*/
__cacheline_aligned_in_smp DEFINE_SEQLOCK(mount_lock);
-static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node)
-{
- struct ns_common *ns;
-
- if (!node)
- return NULL;
- ns = rb_entry(node, struct ns_common, ns_tree_node);
- return container_of(ns, struct mnt_namespace, ns);
-}
-
static void mnt_ns_release(struct mnt_namespace *ns)
{
/* keep alive for {list,stat}mount() */
--
2.50.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] mnt: Remove dead code which might prevent from building
2025-10-24 13:23 [PATCH v1 1/1] mnt: Remove dead code which might prevent from building Andy Shevchenko
@ 2025-10-29 14:57 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2025-10-29 14:57 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Christian Brauner, Jan Kara, Nathan Chancellor, Nick Desaulniers,
Bill Wendling, Justin Stitt, Al Viro, linux-fsdevel, linux-kernel,
llvm
On Fri, 24 Oct 2025 15:23:36 +0200, Andy Shevchenko wrote:
> Clang, in particular, is not happy about dead code:
>
> fs/namespace.c:135:37: error: unused function 'node_to_mnt_ns' [-Werror,-Wunused-function]
> 135 | static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node)
> | ^~~~~~~~~~~~~~
> 1 error generated.
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] mnt: Remove dead code which might prevent from building
https://git.kernel.org/vfs/vfs/c/9db8d46712d2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-29 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24 13:23 [PATCH v1 1/1] mnt: Remove dead code which might prevent from building Andy Shevchenko
2025-10-29 14:57 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).