fs: fix new and older kernel-doc warnings in fs/
PATCH 1/1 fs: fix new and older kernel-doc warnings in fs/
[PATCH -next] fs: libfs: fix kernel-doc for mnt_userns
[PATCH -next] fs: namei: fix kernel-doc for struct renamedata and more [PATCH -next] fs: xattr: fix kernel-doc for mnt_userns and vfs xattr helpers
fs/libfs.c | 1 + fs/namei.c | 14 +++----------- fs/xattr.c | 14 ++++++++------ 3 files changed, 12 insertions(+), 17 deletions(-)
PATCH 1/1 fs: libfs: fix kernel-doc for mnt_userns
Fix kernel-doc warning in libfs.c.
../fs/libfs.c:498: warning: Function parameter or member 'mnt_userns' not described in 'simple_setattr'
--- fs/libfs.c | 1 + 1 file changed, 1 insertion(+)
fs/libfs.c +1 -0
@@ -481,6 +481,7 @@ EXPORT_SYMBOL(simple_rename);/** * simple_setattr - setattr for simple filesystem +* @mnt_userns: user namespace of the target mount * @dentry: dentry * @iattr: iattr structure *
Re: [PATCH -next] fs: libfs: fix kernel-doc for mnt_userns
Quoted 3 lines · Randy Dunlap
Fix kernel-doc warning in
libfs.c.
../fs/libfs.c:498: warning: Function parameter or member 'mnt_userns' not described in 'simple_setattr'
Shouldn't the subject say simple_setattr instead of mnt_userns?
Otherwise looks good:
Re: [PATCH -next] fs: libfs: fix kernel-doc for mnt_userns
Quoted 10 lines · Christoph Hellwig
Quoted 3 lines · Randy Dunlap
Fix kernel-doc warning in
libfs.c.
../fs/libfs.c:498: warning: Function parameter or member 'mnt_userns' not described in 'simple_setattr'Shouldn't the subject say
simple_setattrinstead ofmnt_userns?Otherwise looks good:
Reviewed-by Christoph Hellwig <[email protected]>
Just an fyi, Lukas sent a series for this 1 or 2 weeks ago
https://lore.kernel.org/lkml/[email protected]
Hadn't yet replied to that one.
Christian
Re: [PATCH -next] fs: libfs: fix kernel-doc for mnt_userns
In reply to Christoph HellwigQuoted 10 lines · Christoph Hellwig
Quoted 3 lines · Randy Dunlap
Fix kernel-doc warning in
libfs.c.
../fs/libfs.c:498: warning: Function parameter or member 'mnt_userns' not described in 'simple_setattr'Shouldn't the subject say
simple_setattrinstead ofmnt_userns?Otherwise looks good:
Reviewed-by Christoph Hellwig <[email protected]>
So I've picked this up but just as an fyi b4 fell all over its face on this series always giving me partial patches or prefixing it with v2 or v3 or sm. Really strange, I'll report this to Konstantin.
Christian
PATCH 1/1 fs: namei: fix kernel-doc for struct renamedata and more
In reply to Randy DunlapFix kernel-doc warnings in namei.c:
../fs/namei.c:1149: warning: Excess function parameter 'dir_mode' description in 'may_create_in_sticky' ../fs/namei.c:1149: warning: Excess function parameter 'dir_uid' description in 'may_create_in_sticky' ../fs/namei.c:3396: warning: Function parameter or member 'open_flag' not described in 'vfs_tmpfile' ../fs/namei.c:3396: warning: Excess function parameter 'open_flags' description in 'vfs_tmpfile' ../fs/namei.c:4460: warning: Function parameter or member 'rd' not described in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'old_mnt_userns' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'old_dir' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'old_dentry' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'new_mnt_userns' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'new_dir' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'new_dentry' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'delegated_inode' description in 'vfs_rename' ../fs/namei.c:4460: warning: Excess function parameter 'flags' description in 'vfs_rename'
--- fs/namei.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
fs/namei.c +3 -11
@@ -1121,8 +1121,7 @@ int may_linkat(struct user_namespace *mn* should be allowed, or not, on files that already * exist. * @mnt_userns: user namespace of the mount the inode was found from -* @dir_mode: mode bits of directory -* @dir_uid: owner of directory +* @nd: nameidata pathwalk data * @inode: the inode of the file to open * * Block an O_CREAT open of a FIFO (or a regular file) when:
@@ -3381,7 +3380,7 @@ static int do_open(struct nameidata *nd,* @mnt_userns: user namespace of the mount the inode was found from * @dentry: pointer to dentry of the base directory * @mode: mode of the new tmpfile -* @open_flags: flags +* @open_flag: flags * * Create a temporary file. *
@@ -4406,14 +4405,7 @@ SYSCALL_DEFINE2(link, const char __user/** * vfs_rename - rename a filesystem object -* @old_mnt_userns: old user namespace of the mount the inode was found from -* @old_dir: parent of source -* @old_dentry: source -* @new_mnt_userns: new user namespace of the mount the inode was found from -* @new_dir: parent of destination -* @new_dentry: destination -* @delegated_inode: returns an inode needing a delegation break -* @flags: rename flags +* @rd: pointer to &struct renamedata info * * The caller must hold multiple mutexes--see lock_rename()). *
PATCH 1/1 fs: xattr: fix kernel-doc for mnt_userns and vfs xattr helpers
In reply to Randy DunlapFix kernel-doc warnings in xattr.c:
../fs/xattr.c:257: warning: Function parameter or member 'mnt_userns' not described in '__vfs_setxattr_locked' ../fs/xattr.c:485: warning: Function parameter or member 'mnt_userns' not described in '__vfs_removexattr_locked'
and fix one function whose kernel-doc was not in the correct format.
--- fs/xattr.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
fs/xattr.c +8 -6
@@ -186,12 +186,12 @@ EXPORT_SYMBOL(__vfs_setxattr);* __vfs_setxattr_noperm - perform setxattr operation without performing * permission checks. * -* @mnt_userns - user namespace of the mount the inode was found from -* @dentry - object to perform setxattr on -* @name - xattr name to set -* @value - value to set @name to -* @size - size of @value -* @flags - flags to pass into filesystem operations +* @mnt_userns: user namespace of the mount the inode was found from +* @dentry: object to perform setxattr on +* @name: xattr name to set +* @value: value to set @name to +* @size: size of @value +* @flags: flags to pass into filesystem operations * * returns the result of the internal setxattr or setsecurity operations. *
@@ -242,6 +242,7 @@ int __vfs_setxattr_noperm(struct user_na* __vfs_setxattr_locked - set an extended attribute while holding the inode * lock * +* @mnt_userns: user namespace of the mount of the target inode * @dentry: object to perform setxattr on * @name: xattr name to set * @value: value to set @name to
@@ -473,6 +474,7 @@ EXPORT_SYMBOL(__vfs_removexattr);* __vfs_removexattr_locked - set an extended attribute while holding the inode * lock * +* @mnt_userns: user namespace of the mount of the target inode * @dentry: object to perform setxattr on * @name: name of xattr to remove * @delegated_inode: on return, will contain an inode pointer that