Skip to content

Commit 6df401a

Browse files
rddunlapjxwufan
authored andcommitted
ipe: policy_fs: fix kernel-doc warnings
Use the "struct" keyword in kernel-doc when describing struct ipefs_file. Add kernel-doc for the struct members also. Don't use kernel-doc notation for 'policy_subdir'. kernel-doc does not support documentation comments for data definitions. This eliminates multiple kernel-doc warnings: security/ipe/policy_fs.c:21: warning: cannot understand function prototype: 'struct ipefs_file ' security/ipe/policy_fs.c:407: warning: cannot understand function prototype: 'const struct ipefs_file policy_subdir[] = ' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Fan Wu <wufan@kernel.org> Cc: Paul Moore <paul@paul-moore.com> Cc: James Morris <jmorris@namei.org> Cc: Serge E. Hallyn <serge@hallyn.com> Cc: linux-security-module@vger.kernel.org Signed-off-by: Fan Wu <wufan@kernel.org>
1 parent 38fec10 commit 6df401a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

security/ipe/policy_fs.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
#define MAX_VERSION_SIZE ARRAY_SIZE("65535.65535.65535")
1717

1818
/**
19-
* ipefs_file - defines a file in securityfs.
19+
* struct ipefs_file - defines a file in securityfs.
20+
*
21+
* @name: file name inside the policy subdirectory
22+
* @access: file permissions
23+
* @fops: &file_operations specific to this file
2024
*/
2125
struct ipefs_file {
2226
const char *name;
@@ -401,7 +405,7 @@ static const struct file_operations delete_fops = {
401405
.write = delete_policy,
402406
};
403407

404-
/**
408+
/*
405409
* policy_subdir - files under a policy subdirectory
406410
*/
407411
static const struct ipefs_file policy_subdir[] = {

0 commit comments

Comments
 (0)