Skip to content

Commit 6a81051

Browse files
Yang Lijrjohansen
authored andcommitted
apparmor: Fix some kernel-doc comments
Fix some kernel-doc comments to silence the warnings: security/apparmor/capability.c:66: warning: Function parameter or member 'ad' not described in 'audit_caps' security/apparmor/capability.c:66: warning: Excess function parameter 'as' description in 'audit_caps' security/apparmor/capability.c:154: warning: Function parameter or member 'subj_cred' not described in 'aa_capable' security/apparmor/capability.c:154: warning: Excess function parameter 'subj_cread' description in 'aa_capable' Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7035 Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 7060d3c commit 6a81051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/apparmor/capability.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void audit_cb(struct audit_buffer *ab, void *va)
5151

5252
/**
5353
* audit_caps - audit a capability
54-
* @as: audit data
54+
* @ad: audit data
5555
* @profile: profile being tested for confinement (NOT NULL)
5656
* @cap: capability tested
5757
* @error: error code returned by test
@@ -140,7 +140,7 @@ static int profile_capable(struct aa_profile *profile, int cap,
140140

141141
/**
142142
* aa_capable - test permission to use capability
143-
* @subj_cread: cred we are testing capability against
143+
* @subj_cred: cred we are testing capability against
144144
* @label: label being tested for capability (NOT NULL)
145145
* @cap: capability to be tested
146146
* @opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated

0 commit comments

Comments
 (0)