Skip to content

Commit

Permalink
apparmor: fixup return comments for kernel doc cleanups by Gaosheng Cui
Browse files Browse the repository at this point in the history
[PATCH -next 05/11] apparmor: Fix kernel-doc warnings in apparmor/label.c
missed updating the Returns comment for the new parameter names

[PATCH -next 05/11] apparmor: Fix kernel-doc warnings in apparmor/label.c
Added the @size parameter comment without mentioning it is a return
value.

Signed-off-by: John Johansen <john.johansen@canonical.com>
  • Loading branch information
John Johansen committed Aug 8, 2023
1 parent 25ff0ff commit d2fe16e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions security/apparmor/label.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ static int profile_cmp(struct aa_profile *a, struct aa_profile *b)
* @b: aa_profile to compare (NOT NULL)
* @bn: length of @b
*
* Returns: <0 if a < vec
* ==0 if a == vec
* >0 if a > vec
* Returns: <0 if @a < @b
* ==0 if @a == @b
* >0 if @a > @b
*/
static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn)
{
Expand Down
2 changes: 1 addition & 1 deletion security/apparmor/policy_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static struct aa_perms compute_fperms_other(struct aa_dfa *dfa,
* compute_fperms - convert dfa compressed perms to internal perms and store
* them so they can be retrieved later.
* @dfa: a dfa using fperms to remap to internal permissions
* @size: the permission table size
* @size: Returns the permission table size
*
* Returns: remapped perm table
*/
Expand Down

0 comments on commit d2fe16e

Please sign in to comment.