Skip to content

Commit 6cede10

Browse files
Yang Lijrjohansen
authored andcommitted
apparmor: Fix some kernel-doc comments
Fix some kernel-doc comments to silence the warnings: security/apparmor/policy.c:117: warning: Function parameter or member 'kref' not described in 'aa_pdb_free_kref' security/apparmor/policy.c:117: warning: Excess function parameter 'kr' description in 'aa_pdb_free_kref' security/apparmor/policy.c:882: warning: Function parameter or member 'subj_cred' not described in 'aa_may_manage_policy' Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7037 Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent cd269ca commit 6cede10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/apparmor/policy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static void aa_free_pdb(struct aa_policydb *policy)
111111

112112
/**
113113
* aa_pdb_free_kref - free aa_policydb by kref (called by aa_put_pdb)
114-
* @kr: kref callback for freeing of a dfa (NOT NULL)
114+
* @kref: kref callback for freeing of a dfa (NOT NULL)
115115
*/
116116
void aa_pdb_free_kref(struct kref *kref)
117117
{
@@ -870,7 +870,7 @@ bool aa_current_policy_admin_capable(struct aa_ns *ns)
870870

871871
/**
872872
* aa_may_manage_policy - can the current task manage policy
873-
* @subj_cred; subjects cred
873+
* @subj_cred: subjects cred
874874
* @label: label to check if it can manage policy
875875
* @ns: namespace being managed by @label (may be NULL if @label's ns)
876876
* @mask: contains the policy manipulation operation being done

0 commit comments

Comments
 (0)