Skip to contentSkip to conversation

AppArmor: Fix kernel-doc

PATCH In review Jiapeng Chong 2 participants 6 messages Oct 8, 2022 – Oct 11, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 AppArmor: Fix kernel-doc

security/apparmor/audit.c:93: warning: expecting prototype for audit_base(). Prototype was for audit_pre() instead.

---
 security/apparmor/audit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/audit.c +1 -1
index 8dfdda98fbf1..5a7978aa4b19 100644
@@ -83,7 +83,7 @@ static const char *const aa_class_names[] = {
  */
 
 /**
- * audit_base - core AppArmor function.
+ * audit_pre() - core AppArmor function.
  * @ab: audit buffer to fill (NOT NULL)
  * @ca: audit structure containing data to audit (NOT NULL)
  *
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

PATCH 2/3 LSM: Fix kernel-doc

security/apparmor/lsm.c:753: warning: expecting prototype for apparmor_bprm_committed_cred(). Prototype was for apparmor_bprm_committed_creds() instead.

---
 security/apparmor/lsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lsm.c +1 -1
index cc83cbf2ce20..c56afd1307c1 100644
@@ -746,7 +746,7 @@ static void apparmor_bprm_committing_creds(struct linux_binprm *bprm)
 }
 
 /**
- * apparmor_bprm_committed_cred - do cleanup after new creds committed
+ * apparmor_bprm_committed_creds() - do cleanup after new creds committed
  * @bprm: binprm for the exec  (NOT NULL)
  */
 static void apparmor_bprm_committed_creds(struct linux_binprm *bprm)
Signature · 1 line
2.20.1.7.g153144c
maintainer Acked-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] LSM: Fix kernel-doc

Quoted 5 lines · Jiapeng Chong

security/apparmor/lsm.c:753: warning: expecting prototype for apparmor_bprm_committed_cred(). Prototype was for apparmor_bprm_committed_creds() instead.

I have pulled this into my tree

Quoted 17 lines
---
  security/apparmor/lsm.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lsm.c +1 -1
index cc83cbf2ce20..c56afd1307c1 100644
@@ -746,7 +746,7 @@ static void apparmor_bprm_committing_creds(struct linux_binprm *bprm)
  }
 
  /**
- * apparmor_bprm_committed_cred - do cleanup after new creds committed
+ * apparmor_bprm_committed_creds() - do cleanup after new creds committed
   * @bprm: binprm for the exec  (NOT NULL)
   */
  static void apparmor_bprm_committed_creds(struct linux_binprm *bprm)
#3 lore raw

PATCH 3/3 AppArmor: Fix kernel-doc

In reply to Jiapeng Chong

security/apparmor/ipc.c:53: warning: expecting prototype for audit_cb(). Prototype was for audit_signal_cb() instead.

---
 security/apparmor/ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/ipc.c +1 -1
index 1d4099385bdf..5acde746775f 100644
@@ -45,7 +45,7 @@ static const char *audit_signal_mask(u32 mask)
 }
 
 /**
- * audit_cb - call back for signal specific audit fields
+ * audit_signal_cb() - call back for signal specific audit fields
  * @ab: audit_buffer  (NOT NULL)
  * @va: audit struct to audit values of  (NOT NULL)
  */
Signature · 1 line
2.20.1.7.g153144c
maintainer Acked-by on v1 3/3
#4 lore raw
Quoted 5 lines · Jiapeng Chong

security/apparmor/ipc.c:53: warning: expecting prototype for audit_cb(). Prototype was for audit_signal_cb() instead.

I have pulled this into my tree

Quoted 17 lines
---
  security/apparmor/ipc.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/ipc.c +1 -1
index 1d4099385bdf..5acde746775f 100644
@@ -45,7 +45,7 @@ static const char *audit_signal_mask(u32 mask)
  }
 
  /**
- * audit_cb - call back for signal specific audit fields
+ * audit_signal_cb() - call back for signal specific audit fields
   * @ab: audit_buffer  (NOT NULL)
   * @va: audit struct to audit values of  (NOT NULL)
   */
maintainer Acked-by on v1 1/3
#5 lore raw
In reply to Jiapeng Chong
Quoted 5 lines · Jiapeng Chong

security/apparmor/audit.c:93: warning: expecting prototype for audit_base(). Prototype was for audit_pre() instead.

I have pulled this into my tree

Quoted 17 lines
---
  security/apparmor/audit.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/audit.c +1 -1
index 8dfdda98fbf1..5a7978aa4b19 100644
@@ -83,7 +83,7 @@ static const char *const aa_class_names[] = {
   */
 
  /**
- * audit_base - core AppArmor function.
+ * audit_pre() - core AppArmor function.
   * @ab: audit buffer to fill (NOT NULL)
   * @ca: audit structure containing data to audit (NOT NULL)
   *