This is a test repository.
Revision | 98eaa63e96273de075f3ce4eac0f18b33d28b84c (tree) |
---|---|
Time | 2021-06-16 00:01:28 |
Author | ChenXiaoSong <chenxiaosong2@huaw...> |
Commiter | Tetsuo Handa |
tomoyo: fix doc warnings
Fix gcc W=1 warnings:
security/tomoyo/audit.c:331: warning: Function parameter or member 'matched_acl' not described in 'tomoyo_get_audit'
security/tomoyo/securityfs_if.c:146: warning: Function parameter or member 'inode' not described in 'tomoyo_release'
security/tomoyo/tomoyo.c:122: warning: Function parameter or member 'path' not described in 'tomoyo_inode_getattr'
security/tomoyo/tomoyo.c:497: warning: Function parameter or member 'clone_flags' not described in 'tomoyo_task_alloc'
security/tomoyo/util.c:92: warning: Function parameter or member 'time64' not described in 'tomoyo_convert_time'
Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
[ penguin-kernel: Also adjust spaces and similar warnings ]
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
@@ -320,6 +320,7 @@ static unsigned int tomoyo_log_count; | ||
320 | 320 | * @ns: Pointer to "struct tomoyo_policy_namespace". |
321 | 321 | * @profile: Profile number. |
322 | 322 | * @index: Index number of functionality. |
323 | + * @matched_acl: Pointer to "struct tomoyo_acl_info". | |
323 | 324 | * @is_granted: True if granted log, false otherwise. |
324 | 325 | * |
325 | 326 | * Returns true if this request should be audited, false otherwise. |
@@ -139,6 +139,7 @@ static int tomoyo_open(struct inode *inode, struct file *file) | ||
139 | 139 | /** |
140 | 140 | * tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface. |
141 | 141 | * |
142 | + * @inode: Pointer to "struct inode". | |
142 | 143 | * @file: Pointer to "struct file". |
143 | 144 | * |
144 | 145 | */ |
@@ -63,7 +63,7 @@ static void tomoyo_bprm_committed_creds(struct linux_binprm *bprm) | ||
63 | 63 | |
64 | 64 | #ifndef CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER |
65 | 65 | /** |
66 | - * tomoyo_bprm_for_exec - Target for security_bprm_creds_for_exec(). | |
66 | + * tomoyo_bprm_creds_for_exec - Target for security_bprm_creds_for_exec(). | |
67 | 67 | * |
68 | 68 | * @bprm: Pointer to "struct linux_binprm". |
69 | 69 | * |
@@ -113,8 +113,7 @@ static int tomoyo_bprm_check_security(struct linux_binprm *bprm) | ||
113 | 113 | /** |
114 | 114 | * tomoyo_inode_getattr - Target for security_inode_getattr(). |
115 | 115 | * |
116 | - * @mnt: Pointer to "struct vfsmount". | |
117 | - * @dentry: Pointer to "struct dentry". | |
116 | + * @path: Pointer to "struct path". | |
118 | 117 | * |
119 | 118 | * Returns 0 on success, negative value otherwise. |
120 | 119 | */ |
@@ -300,8 +299,7 @@ static int tomoyo_file_fcntl(struct file *file, unsigned int cmd, | ||
300 | 299 | /** |
301 | 300 | * tomoyo_file_open - Target for security_file_open(). |
302 | 301 | * |
303 | - * @f: Pointer to "struct file". | |
304 | - * @cred: Pointer to "struct cred". | |
302 | + * @f: Pointer to "struct file". | |
305 | 303 | * |
306 | 304 | * Returns 0 on success, negative value otherwise. |
307 | 305 | */ |
@@ -487,8 +485,8 @@ struct lsm_blob_sizes tomoyo_blob_sizes __lsm_ro_after_init = { | ||
487 | 485 | /** |
488 | 486 | * tomoyo_task_alloc - Target for security_task_alloc(). |
489 | 487 | * |
490 | - * @task: Pointer to "struct task_struct". | |
491 | - * @flags: clone() flags. | |
488 | + * @task: Pointer to "struct task_struct". | |
489 | + * @clone_flags: clone() flags. | |
492 | 490 | * |
493 | 491 | * Returns 0. |
494 | 492 | */ |
@@ -83,8 +83,8 @@ const u8 tomoyo_index2category[TOMOYO_MAX_MAC_INDEX] = { | ||
83 | 83 | /** |
84 | 84 | * tomoyo_convert_time - Convert time_t to YYYY/MM/DD hh/mm/ss. |
85 | 85 | * |
86 | - * @time: Seconds since 1970/01/01 00:00:00. | |
87 | - * @stamp: Pointer to "struct tomoyo_time". | |
86 | + * @time64: Seconds since 1970/01/01 00:00:00. | |
87 | + * @stamp: Pointer to "struct tomoyo_time". | |
88 | 88 | * |
89 | 89 | * Returns nothing. |
90 | 90 | */ |