[PATCH] fs: doc: describe 'pinned' parameter in do_lock_mount()
From: Kriish Sharma
Date: Wed Sep 24 2025 - 15:37:09 EST
The kernel-doc comment for do_lock_mount() was missing a description
for the 'pinned' parameter:
Warning: fs/namespace.c:2772 function parameter 'pinned' not described
in 'do_lock_mount'
This patch adds a short description:
@pinned: receives the pinned mountpoint
to fix the warning and improve documentation clarity.
Signed-off-by: Kriish Sharma <kriish.sharma2006@xxxxxxxxx>
---
fs/namespace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/namespace.c b/fs/namespace.c
index 51f77c65c0c6..4de1a33ab516 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2738,6 +2738,7 @@ static int attach_recursive_mnt(struct mount *source_mnt,
/**
* do_lock_mount - lock mount and mountpoint
* @path: target path
+ * @pinned: receives the pinned mountpoint
* @beneath: whether the intention is to mount beneath @path
*
* Follow the mount stack on @path until the top mount @mnt is found. If
--
2.34.1