[PATCH -next] fs: d_path.c: fix prepend_buffer kernel-doc warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix new kernel-doc warnings related to struct prepend_buffer:

../fs/d_path.c:52: warning: Excess function parameter 'buffer' description in 'prepend_name'
../fs/d_path.c:52: warning: Excess function parameter 'buflen' description in 'prepend_name'
../fs/d_path.c:127: warning: Excess function parameter 'buffer' description in 'prepend_path'
../fs/d_path.c:127: warning: Excess function parameter 'buflen' description in 'prepend_path'

Fixes: ad08ae586586e ("d_path: introduce struct prepend_buffer")
Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: linux-fsdevel@xxxxxxxxxxxxxxx
---
 fs/d_path.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- linux-next-20210625.orig/fs/d_path.c
+++ linux-next-20210625/fs/d_path.c
@@ -33,8 +33,7 @@ static void prepend(struct prepend_buffe
 
 /**
  * prepend_name - prepend a pathname in front of current buffer pointer
- * @buffer: buffer pointer
- * @buflen: allocated length of the buffer
+ * @p: &struct prepend_buffer parameters
  * @name:   name string and length qstr structure
  *
  * With RCU path tracing, it may race with d_move(). Use READ_ONCE() to
@@ -108,8 +107,7 @@ static int __prepend_path(const struct d
  * prepend_path - Prepend path string to a buffer
  * @path: the dentry/vfsmount to report
  * @root: root vfsmnt/dentry
- * @buffer: pointer to the end of the buffer
- * @buflen: pointer to buffer length
+ * @p: &struct prepend_buffer parameters
  *
  * The function will first try to write out the pathname without taking any
  * lock other than the RCU read lock to make sure that dentries won't go away.



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux