[PATCH] security: smack: fix typo in kernel-doc

From
Manuel Ebner <hidden>
Date
2026-11-11 19:16:40
Also in
lkml
Fix function name in kernel-doc, fixing:
  $ ./scripts/kernel-doc --none security/smack/smack_access.c
  Warning: security/smack/smack_access.c:593 expecting prototype for smk_import_valid_allocated_label(). Prototype was for smk_import_allocated_label() instead

Fixes: 674e2b24791c ("smack: fix bug: setting task label silently ignores input garbage")
Signed-off-by: Manuel Ebner <redacted>
---
 security/smack/smack_access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
index fb85356266..085b75ce6d 100644
--- a/security/smack/smack_access.c
+++ b/security/smack/smack_access.c
@@ -582,7 +582,7 @@ int smack_populate_secattr(struct smack_known *skp)
 }
 
 /**
- * smk_import_valid_allocated_label - import a label, return the list entry
+ * smk_import_allocated_label - import a label, return the list entry
  * @smack: a text string that is a valid Smack label and may be kfree()ed.
  *         It is consumed: either becomes a part of the entry or kfree'ed.
  * @gfp: Allocation type
-- 
2.56.0
Thread (2 messages) 2 messages, 2 authors, last reply 4d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help