Skip to content

Commit d2fe16e

Browse files
committed
apparmor: fixup return comments for kernel doc cleanups by Gaosheng Cui
[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>
1 parent 25ff0ff commit d2fe16e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

security/apparmor/label.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ static int profile_cmp(struct aa_profile *a, struct aa_profile *b)
159159
* @b: aa_profile to compare (NOT NULL)
160160
* @bn: length of @b
161161
*
162-
* Returns: <0 if a < vec
163-
* ==0 if a == vec
164-
* >0 if a > vec
162+
* Returns: <0 if @a < @b
163+
* ==0 if @a == @b
164+
* >0 if @a > @b
165165
*/
166166
static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn)
167167
{

security/apparmor/policy_compat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static struct aa_perms compute_fperms_other(struct aa_dfa *dfa,
143143
* compute_fperms - convert dfa compressed perms to internal perms and store
144144
* them so they can be retrieved later.
145145
* @dfa: a dfa using fperms to remap to internal permissions
146-
* @size: the permission table size
146+
* @size: Returns the permission table size
147147
*
148148
* Returns: remapped perm table
149149
*/

0 commit comments

Comments
 (0)