]> Git Repo - linux.git/commitdiff
apparmor: Fix some kernel-doc comments
authorYang Li <[email protected]>
Mon, 23 Oct 2023 00:55:17 +0000 (08:55 +0800)
committerJohn Johansen <[email protected]>
Mon, 23 Oct 2023 07:25:49 +0000 (00:25 -0700)
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 <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7035
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: John Johansen <[email protected]>
security/apparmor/capability.c

index 0b7d2b1086c945584e7fc7815925f9cad2071149..9934df16c8431de3e42f38ccbaee0a40713dfa8a 100644 (file)
@@ -51,7 +51,7 @@ static void audit_cb(struct audit_buffer *ab, void *va)
 
 /**
  * audit_caps - audit a capability
- * @as: audit data
+ * @ad: audit data
  * @profile: profile being tested for confinement (NOT NULL)
  * @cap: capability tested
  * @error: error code returned by test
@@ -140,7 +140,7 @@ static int profile_capable(struct aa_profile *profile, int cap,
 
 /**
  * aa_capable - test permission to use capability
- * @subj_cread: cred we are testing capability against
+ * @subj_cred: cred we are testing capability against
  * @label: label being tested for capability (NOT NULL)
  * @cap: capability to be tested
  * @opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated
This page took 0.059376 seconds and 4 git commands to generate.