Skip to content

Commit 8921482

Browse files
gscuijrjohansen
authored andcommitted
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: Gaosheng Cui <cuigaosheng1@huawei.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent e18573d commit 8921482

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

security/apparmor/lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct aa_perms allperms = { .allow = ALL_PERMS_MASK,
2727

2828
/**
2929
* aa_free_str_table - free entries str table
30-
* @str: the string table to free (MAYBE NULL)
30+
* @t: the string table to free (MAYBE NULL)
3131
*/
3232
void aa_free_str_table(struct aa_str_table *t)
3333
{
@@ -85,6 +85,7 @@ char *aa_split_fqname(char *fqname, char **ns_name)
8585
/**
8686
* skipn_spaces - Removes leading whitespace from @str.
8787
* @str: The string to be stripped.
88+
* @n: length of str to parse, will stop at \0 if encountered before n
8889
*
8990
* Returns a pointer to the first non-whitespace character in @str.
9091
* if all whitespace will return NULL
@@ -371,7 +372,6 @@ int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target,
371372
* @profile: profile being checked
372373
* @perms: perms computed for the request
373374
* @request: requested perms
374-
* @deny: Returns: explicit deny set
375375
* @sa: initialized audit structure (MAY BE NULL if not auditing)
376376
* @cb: callback fn for type specific fields (MAY BE NULL)
377377
*

0 commit comments

Comments
 (0)