apparmor: fix typo in kernel doc
Subsystems (3)
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
@@ -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
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
@@ -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
Paul Moore
maintainerRe: [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.Signed-off-by Christian Göttsche <[email protected]>--- 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@@ -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
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
Signed-off-by Christian Göttsche <[email protected]>--- 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@@ -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
Re: [PATCH 1/2] yama: document function parameter
In reply to Christian GöttscheQuoted 4 lines · Christian Göttsche
Document the unused function parameter of
yama_relation_cleanup()to please kernel doc warnings.Signed-off-by Christian Göttsche <[email protected]>
Signature · 1 line
Kees Cook
Paul Moore
maintainerRe: [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.Signed-off-by Christian Göttsche <[email protected]>Reviewed-by Kees Cook <[email protected]>
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
Re: (subset) [PATCH 1/2] yama: document function parameter
In reply to Christian GöttscheQuoted 4 lines · Christian Göttsche
Document the unused function parameter of
yama_relation_cleanup()to please kernel doc warnings.
Applied to for-next/hardening, thanks!
[1/2] yama: document function parameter
https://git.kernel.org/kees/c/f7d3b1ffc654
Take care,
Signature · 1 line
Kees Cook
Quoted 4 lines · Christian Göttsche
Fix the typo in the function documentation to please kernel doc warnings.
Signed-off-by Christian Göttsche <[email protected]>
Signature · 1 line
Kees Cook
Quoted 4 lines · Christian Göttsche
Fix the typo in the function documentation to please kernel doc warnings.
Signed-off-by Christian Göttsche <[email protected]>
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@@ -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: