lkml.org 
[lkml]   [2022]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2] fs: namei: fix two excess parameter description warnings
Date
While building the kernel documentation, two excess parameter description
warnings appear:
./fs/namei.c:3589: warning: Excess function parameter 'dentry'
description in 'vfs_tmpfile'
./fs/namei.c:3589: warning: Excess function parameter 'open_flag'
description in 'vfs_tmpfile'

Fix these warnings by changing 'dentry' to 'parentpath' in the parameter
description and 'open_flag' to 'file' and change 'file' parameter's
description accordingly.

Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Kushagra Verma <kushagra765@outlook.com>
---
v1 -> v2: Add Randy Dunlap's Tested-by tag

fs/namei.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index 578c2110df02..8e77e194fed5 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -3571,9 +3571,9 @@ static int do_open(struct nameidata *nd,
/**
* vfs_tmpfile - create tmpfile
* @mnt_userns: user namespace of the mount the inode was found from
- * @dentry: pointer to dentry of the base directory
+ * @parentpath: pointer to dentry of the base directory
* @mode: mode of the new tmpfile
- * @open_flag: flags
+ * @file: file information
*
* Create a temporary file.
*
--
2.38.1
\
 
 \ /
  Last update: 2022-11-25 19:17    [W:0.031 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site