Skip to contentSkip to conversation

VFS: namei: fix __start_dirop() kernel-doc warnings

PATCH Superseded Randy Dunlap 2 participants 3 messages Nov 28, 2025 VFS

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VFS: namei: fix __start_dirop() kernel-doc warnings

Use the correct function name and add description for the @state parameter to avoid these kernel-doc warnings:

Warning: fs/namei.c:2853 function parameter 'state' not described
in '__start_dirop'

WARNING: fs/namei.c:2853 expecting prototype for start_dirop().
 Prototype was for __start_dirop() instead
Fixes ff7c4ea11a05 ("VFS: add start_creating_killable() and start_removing_killable()")

---
Cc: NeilBrown <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Jan Kara <[email protected]>

---
 fs/namei.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/namei.c +2 -1
@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, st
 }
 
 /**
- * start_dirop - begin a create or remove dirop, performing locking and lookup
+ * __start_dirop - begin a create or remove dirop, performing locking and lookup
  * @parent:       the dentry of the parent in which the operation will occur
  * @name:         a qstr holding the name within that parent
  * @lookup_flags: intent and other lookup flags.
+ * @state:        target task state
  *
  * The lookup is performed and necessary locks are taken so that, on success,
  * the returned dentry can be operated on safely.
#1 lore raw
Quoted 25 lines · Randy Dunlap

Use the correct function name and add description for the @state parameter to avoid these kernel-doc warnings:

Warning: fs/namei.c:2853 function parameter 'state' not described
in '__start_dirop'

WARNING: fs/namei.c:2853 expecting prototype for start_dirop().
 Prototype was for __start_dirop() instead
Fixes ff7c4ea11a05 ("VFS: add start_creating_killable() and start_removing_killable()")

---
Cc: NeilBrown <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Jan Kara <[email protected]>

---
 fs/namei.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/namei.c +0 -0
@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, st
 }
 

fs/namei.c static int filename_parentat(int dfd, st · line 2846

Quoted 10 lines
fs/namei.c +2 -1
 /**
- * start_dirop - begin a create or remove dirop, performing locking and lookup
+ * __start_dirop - begin a create or remove dirop, performing locking and lookup
  * @parent:       the dentry of the parent in which the operation will occur
  * @name:         a qstr holding the name within that parent
  * @lookup_flags: intent and other lookup flags.
+ * @state:        target task state
  *
  * The lookup is performed and necessary locks are taken so that, on success,
  * the returned dentry can be operated on safely.

Thanks - but I would rather the doc comment were moved down to be immediately before start_dirop().

If we were to document __start_dirop (as well?) we would need to actually say what @state is used for.

Thanks,
NeilBrown

#2 lore raw
Quoted 25 lines · NeilBrown
Quoted 24 lines · Randy Dunlap

Use the correct function name and add description for the @state parameter to avoid these kernel-doc warnings:

Warning: fs/namei.c:2853 function parameter 'state' not described
in '__start_dirop'

WARNING: fs/namei.c:2853 expecting prototype for start_dirop().
 Prototype was for __start_dirop() instead
Fixes ff7c4ea11a05 ("VFS: add start_creating_killable() and start_removing_killable()")

---
Cc: NeilBrown <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Jan Kara <[email protected]>

---
 fs/namei.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/namei.c +0 -0
@@ -2836,10 +2836,11 @@ static int filename_parentat(int dfd, st
 }
 
Quoted 14 lines

fs/namei.c static int filename_parentat(int dfd, st · line 2846

Quoted 11 lines
fs/namei.c +2 -1
 /**
- * start_dirop - begin a create or remove dirop, performing locking and lookup
+ * __start_dirop - begin a create or remove dirop, performing locking and lookup
  * @parent:       the dentry of the parent in which the operation will occur
  * @name:         a qstr holding the name within that parent
  * @lookup_flags: intent and other lookup flags.
+ * @state:        target task state
  *
  * The lookup is performed and necessary locks are taken so that, on success,
  * the returned dentry can be operated on safely.

Thanks - but I would rather the doc comment were moved down to be immediately before start_dirop().

Sounds good.

Quoted 2 lines

If we were to document __start_dirop (as well?) we would need to actually say what @state is used for.

Signature · 1 line
~Randy