提交 e39e773a 编写于 作者: R Randy Dunlap 提交者: Linus Torvalds

fs/posix_acl.c: fix kernel-doc warnings

Fix kernel-doc warnings in fs/posix_acl.c.
Also fix one typo (setgit -> setgid).

  fs/posix_acl.c:647: warning: Function parameter or member 'inode' not described in 'posix_acl_update_mode'
  fs/posix_acl.c:647: warning: Function parameter or member 'mode_p' not described in 'posix_acl_update_mode'
  fs/posix_acl.c:647: warning: Function parameter or member 'acl' not described in 'posix_acl_update_mode'

Link: http://lkml.kernel.org/r/29b0dc46-1f28-a4e5-b1d0-ba2b65629779@infradead.org
Fixes: 07393101 ("posix_acl: Clear SGID bit when setting file permissions")
Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
Acked-by: NAndreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: NJan Kara <jack@suse.cz>
Cc: Jan Kara <jack@suse.cz>
Cc: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 63e80314
...@@ -631,12 +631,15 @@ EXPORT_SYMBOL_GPL(posix_acl_create); ...@@ -631,12 +631,15 @@ EXPORT_SYMBOL_GPL(posix_acl_create);
/** /**
* posix_acl_update_mode - update mode in set_acl * posix_acl_update_mode - update mode in set_acl
* @inode: target inode
* @mode_p: mode (pointer) for update
* @acl: acl pointer
* *
* Update the file mode when setting an ACL: compute the new file permission * Update the file mode when setting an ACL: compute the new file permission
* bits based on the ACL. In addition, if the ACL is equivalent to the new * bits based on the ACL. In addition, if the ACL is equivalent to the new
* file mode, set *acl to NULL to indicate that no ACL should be set. * file mode, set *@acl to NULL to indicate that no ACL should be set.
* *
* As with chmod, clear the setgit bit if the caller is not in the owning group * As with chmod, clear the setgid bit if the caller is not in the owning group
* or capable of CAP_FSETID (see inode_change_ok). * or capable of CAP_FSETID (see inode_change_ok).
* *
* Called from set_acl inode operations. * Called from set_acl inode operations.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册