Skip to contentSkip to conversation

apparmor: fix typo in kernel doc

PATCH Applied Christian Göttsche 5 participants 9 messages Mar 15, 2024 – Jun 6, 2024

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

PATCH 2/2 apparmor: fix typo in kernel doc

Fix the typo in the function documentation to please kernel doc warnings.

---
 security/apparmor/lsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lsm.c +1 -1
index cef8c466af80..d0485fb0ed63 100644
@@ -1124,7 +1124,7 @@ static int apparmor_socket_create(int family, int type, int protocol, int kern)
  * @sock: socket that is being setup
  * @family: family of socket being created
  * @type: type of the socket
- * @ptotocol: protocol of the socket
+ * @protocol: protocol of the socket
  * @kern: socket is a special kernel socket
  *
  * Note:
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/2 yama: document function parameter

Document the unused function parameter of yama_relation_cleanup() to please kernel doc warnings.

---
 security/yama/yama_lsm.c | 1 +
 1 file changed, 1 insertion(+)
security/yama/yama_lsm.c +1 -0
index 49dc52b454ef..f8e4acd41b72 100644
@@ -111,6 +111,7 @@ static void report_access(const char *access, struct task_struct *target,
 
 /**
  * yama_relation_cleanup - remove invalid entries from the relation list
+ * @work: unused
  *
  */
 static void yama_relation_cleanup(struct work_struct *work)
Signature · 1 line
2.43.0
maintainer
#2 lore raw

Re: [PATCH 1/2] yama: document function parameter

Quoted 8 lines · Christian Göttsche

Document the unused function parameter of yama_relation_cleanup() to please kernel doc warnings.

---
 security/yama/yama_lsm.c | 1 +
 1 file changed, 1 insertion(+)

One small comment below, but otherwise looks okay to me.

Reviewed-by:

security/yama/yama_lsm.c static void report_access(const char *access, struct task_struct *target, · line 117

Quoted 12 lines
security/yama/yama_lsm.c +1 -0
index 49dc52b454ef..f8e4acd41b72 100644
@@ -111,6 +111,7 @@ static void report_access(const char *access, struct task_struct *target,
 
 /**
  * yama_relation_cleanup - remove invalid entries from the relation list
+ * @work: unused
  *
  */
 static void yama_relation_cleanup(struct work_struct *work)

Should we also take this opportunity to mark the parameter as '__always_unused'?

Signature · 1 line
paul-moore.com
maintainer Reviewed-by
#3 lore raw

Re: [PATCH 1/2] yama: document function parameter

Quoted 7 lines · Paul Moore
Quoted 4 lines · Christian Göttsche

Document the unused function parameter of yama_relation_cleanup() to please kernel doc warnings.

Quoted 8 lines
Quoted 4 lines
---
 security/yama/yama_lsm.c | 1 +
 1 file changed, 1 insertion(+)

One small comment below, but otherwise looks okay to me.

Reviewed-by:

Bah, let's try that again ...

Quoted 14 lines

security/yama/yama_lsm.c static void report_access(const char *access, struct task_struct *target, · line 117

Quoted 12 lines
security/yama/yama_lsm.c +1 -0
index 49dc52b454ef..f8e4acd41b72 100644
@@ -111,6 +111,7 @@ static void report_access(const char *access, struct task_struct *target,
 
 /**
  * yama_relation_cleanup - remove invalid entries from the relation list
+ * @work: unused
  *
  */
 static void yama_relation_cleanup(struct work_struct *work)

Should we also take this opportunity to mark the parameter as '__always_unused'?

Signature · 1 line
paul-moore.com
maintainer
#5 lore raw

Re: [PATCH 1/2] yama: document function parameter

Quoted 7 lines · Kees Cook
Quoted 4 lines · Christian Göttsche

Document the unused function parameter of yama_relation_cleanup() to please kernel doc warnings.

I ran across this in patchwork just now and don't see it upstream yet, you're picking this up right Kees?

Signature · 1 line
paul-moore.com
maintainer Acked-by on v1 2/2
#8 lore raw
In reply to Christian Göttsche
Quoted 4 lines · Christian Göttsche

Fix the typo in the function documentation to please kernel doc warnings.

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 cef8c466af80..d0485fb0ed63 100644
@@ -1124,7 +1124,7 @@ static int apparmor_socket_create(int family, int type, int protocol, int kern)
   * @sock: socket that is being setup
   * @family: family of socket being created
   * @type: type of the socket
- * @ptotocol: protocol of the socket
+ * @protocol: protocol of the socket
   * @kern: socket is a special kernel socket
   *
   * Note: