Skip to contentSkip to conversation

apparmor: lsm: fix kernel-doc typo

PATCH New Randy Dunlap 1 participant 1 message Jan 15, 2024

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

PATCH 1/1 apparmor: lsm: fix kernel-doc typo

Correct a kernel-doc function parameter name to resolve two kernel-doc warnings:

lsm.c:1136: warning: Function parameter or struct member 'protocol' not described in 'apparmor_socket_post_create' lsm.c:1136: warning: Excess function parameter 'ptotocol' description in 'apparmor_socket_post_create'

Cc John Johansen <[email protected]>
Cc John Johansen <[email protected]>
Cc Paul Moore <[email protected]>
Cc James Morris <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
---
 security/apparmor/lsm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lsm.c +1 -1
diff -- a/security/apparmor/lsm.c b/security/apparmor/lsm.c
@@ -1122,7 +1122,7 @@ static int apparmor_socket_create(int fa
  * @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: