VFS: namei: fix start_dirop() kernel-doc warnings
PATCH v2 1/1 VFS: namei: fix start_dirop() kernel-doc warnings
Move the kernel-doc function description from just prior to __start_dirop() to just before start_dirop() 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()")
Signed-off-by Randy Dunlap <[email protected]>
---
v2: move kernel-doc to start_dirop() instead of __start_dirop() [Neil]
---
Cc: NeilBrown <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Jan Kara <[email protected]>
--- fs/namei.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-)
fs/namei.c +12 -13
@@ -2835,19 +2835,6 @@ static int filename_parentat(int dfd, streturn __filename_parentat (dfd, name, flags, parent, last, type,NULL ); } -/** -* 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. -* -* The lookup is performed and necessary locks are taken so that, on success, -* the returned dentry can be operated on safely. -* The qstr must already have the hash value calculated. -* -* Returns: a locked dentry, or an error. -* -*/ static struct dentry *__start_dirop (struct dentry *parent,struct qstr *name,unsigned int lookup_flags,unsigned int state)
@@ -2869,6 +2856,18 @@ static struct dentry *__start_dirop(strureturn dentry; } +/** +* 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. +* +* The lookup is performed and necessary locks are taken so that, on success, +* the returned dentry can be operated on safely. +* The qstr must already have the hash value calculated. +* +* Returns: a locked dentry, or an error. +*/ struct dentry *start_dirop (struct dentry *parent,struct qstr *name,unsigned int lookup_flags) {