]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mnt: Remove dead code which might prevent from building
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Oct 2025 13:23:36 +0000 (15:23 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 14:57:24 +0000 (15:57 +0100)
commit9db8d46712d274a27d1d22c38e70211f20d508c2
tree38810b41f387a7e60f6dcab0bcd27932b40a50f2
parent34ab4c75588c07cca12884f2bf6b0347c7a13872
mnt: Remove dead code which might prevent from building

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>
Link: https://patch.msgid.link/20251024132336.1666382-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c