Skip to contentSkip to conversation

security: smack: fix typo in kernel-doc

PATCH Applied Manuel Ebner 3 participants 3 messages Nov 11 – Dec 1

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

PATCH 1/1 security: smack: fix typo in kernel-doc

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")
---
 security/smack/smack_access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/smack/smack_access.c +1 -1
index fb85356266..085b75ce6d 100644
@@ -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
Signature · 1 line
2.56.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 6 lines

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")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Applied
#2 lore raw
In reply to Manuel Ebner
Quoted 6 lines · Manuel Ebner

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")

Applied to smack-next. Thank you.

Quoted 17 lines
---
 security/smack/smack_access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/smack/smack_access.c +1 -1
index fb85356266..085b75ce6d 100644
@@ -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