../fs/namespace.c:1779:1: warning: unused function 'class_namespace_lock_lock_err' [-Wunused-function] 1779 | DEFINE_GUARD(namespace_lock, struct rw_semaphore *, namespace_lock(), namespace_unlock()) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/cleanup.h:380:2: note: expanded from macro 'DEFINE_GUARD' 380 | DEFINE_CLASS_IS_GUARD(_name) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/cleanup.h:372:2: note: expanded from macro 'DEFINE_CLASS_IS_GUARD' 372 | __DEFINE_GUARD_LOCK_PTR(_name, _T) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/cleanup.h:358:20: note: expanded from macro '__DEFINE_GUARD_LOCK_PTR' 358 | static inline int class_##_name##_lock_err(class_##_name##_t *_T) \ | ^~~~~~~~~~~~~~~~~~~~~~~~ :47:1: note: expanded from here 47 | class_namespace_lock_lock_err | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. Warning: ../fs/namespace.c:2772 function parameter 'pinned' not described in 'do_lock_mount' ../fs/namespace.c:118:37: warning: unused function 'node_to_mnt_ns' [-Wunused-function] 118 | static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node) | ^~~~~~~~~~~~~~ ../fs/namespace.c:1713:1: warning: unused function 'class_namespace_lock_lock_err' [-Wunused-function] 1713 | DEFINE_GUARD(namespace_lock, struct rw_semaphore *, namespace_lock(), namespace_unlock()) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/cleanup.h:380:2: note: expanded from macro 'DEFINE_GUARD' 380 | DEFINE_CLASS_IS_GUARD(_name) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/cleanup.h:372:2: note: expanded from macro 'DEFINE_CLASS_IS_GUARD' 372 | __DEFINE_GUARD_LOCK_PTR(_name, _T) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/cleanup.h:358:20: note: expanded from macro '__DEFINE_GUARD_LOCK_PTR' 358 | static inline int class_##_name##_lock_err(class_##_name##_t *_T) \ | ^~~~~~~~~~~~~~~~~~~~~~~~ :47:1: note: expanded from here 47 | class_namespace_lock_lock_err | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. Warning: ../fs/namespace.c:2703 function parameter 'pinned' not described in 'do_lock_mount' New errors added --- /tmp/tmp.yYy1vten4t 2025-09-12 12:26:59.304584169 -0700 +++ /tmp/tmp.YnDS5WGUkV 2025-09-12 12:30:04.872490785 -0700 @@ -1,2 +1,5 @@ -../fs/namespace.c:1779:1: warning: unused function 'class_namespace_lock_lock_err' [-Wunused-function] - 1779 | DEFINE_GUARD(namespace_lock, struct rw_semaphore *, namespace_lock(), namespace_unlock()) +../fs/namespace.c:118:37: warning: unused function 'node_to_mnt_ns' [-Wunused-function] + 118 | static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node) + | ^~~~~~~~~~~~~~ +../fs/namespace.c:1713:1: warning: unused function 'class_namespace_lock_lock_err' [-Wunused-function] + 1713 | DEFINE_GUARD(namespace_lock, struct rw_semaphore *, namespace_lock(), namespace_unlock()) @@ -16,2 +19,2 @@ -1 warning generated. -Warning: ../fs/namespace.c:2772 function parameter 'pinned' not described in 'do_lock_mount' +2 warnings generated. +Warning: ../fs/namespace.c:2703 function parameter 'pinned' not described in 'do_lock_mount' Per-file breakdown --- /tmp/tmp.jjl3zdMG05 2025-09-12 12:31:37.610946930 -0700 +++ /tmp/tmp.m9CLFQcbf8 2025-09-12 12:31:37.612946918 -0700 @@ -1 +1 @@ - 1 ../fs/namespace.c + 2 ../fs/namespace.c