Commit 89214822 authored by Gaosheng Cui's avatar Gaosheng Cui Committed by John Johansen

apparmor: Fix kernel-doc warnings in apparmor/lib.c

Fix kernel-doc warnings:

security/apparmor/lib.c:33: warning: Excess function parameter
'str' description in 'aa_free_str_table'
security/apparmor/lib.c:33: warning: Function parameter or member
't' not described in 'aa_free_str_table'
security/apparmor/lib.c:94: warning: Function parameter or
member 'n' not described in 'skipn_spaces'
security/apparmor/lib.c:390: warning: Excess function parameter
'deny' description in 'aa_check_perms'
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent e18573dd
...@@ -27,7 +27,7 @@ struct aa_perms allperms = { .allow = ALL_PERMS_MASK, ...@@ -27,7 +27,7 @@ struct aa_perms allperms = { .allow = ALL_PERMS_MASK,
/** /**
* aa_free_str_table - free entries str table * aa_free_str_table - free entries str table
* @str: the string table to free (MAYBE NULL) * @t: the string table to free (MAYBE NULL)
*/ */
void aa_free_str_table(struct aa_str_table *t) void aa_free_str_table(struct aa_str_table *t)
{ {
...@@ -85,6 +85,7 @@ char *aa_split_fqname(char *fqname, char **ns_name) ...@@ -85,6 +85,7 @@ char *aa_split_fqname(char *fqname, char **ns_name)
/** /**
* skipn_spaces - Removes leading whitespace from @str. * skipn_spaces - Removes leading whitespace from @str.
* @str: The string to be stripped. * @str: The string to be stripped.
* @n: length of str to parse, will stop at \0 if encountered before n
* *
* Returns a pointer to the first non-whitespace character in @str. * Returns a pointer to the first non-whitespace character in @str.
* if all whitespace will return NULL * if all whitespace will return NULL
...@@ -371,7 +372,6 @@ int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, ...@@ -371,7 +372,6 @@ int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target,
* @profile: profile being checked * @profile: profile being checked
* @perms: perms computed for the request * @perms: perms computed for the request
* @request: requested perms * @request: requested perms
* @deny: Returns: explicit deny set
* @sa: initialized audit structure (MAY BE NULL if not auditing) * @sa: initialized audit structure (MAY BE NULL if not auditing)
* @cb: callback fn for type specific fields (MAY BE NULL) * @cb: callback fn for type specific fields (MAY BE NULL)
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment