[PATCH] smack: fix kernel-doc warnings for smk_import_valid_label()

Konstantin Andreev andreev at swemel.ru
Thu Jun 26 16:47:29 UTC 2025


Reported-by: kernel test robot <lkp at intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506251712.x5SJiNlh-lkp@intel.com/
Signed-off-by: Konstantin Andreev <andreev at swemel.ru>
---
 security/smack/smack_access.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
index a289cb6672bd..09167be79122 100644
--- a/security/smack/smack_access.c
+++ b/security/smack/smack_access.c
@@ -642,9 +642,11 @@ struct smack_known *smk_import_entry(const char *string, int len)
 
 /**
  * smk_import_valid_label - import a label, return the list entry
- * @label a text string that is a valid Smack label, not null-terminated
+ * @label: a text string that is a valid Smack label, not null-terminated
+ * @label_len: the length of the text string in the @label
+ * @gfp: the GFP mask used for allocating memory for the @label text string copy
  *
- * Returns: see description of smk_import_entry()
+ * Return: see description of smk_import_entry()
  */
 struct smack_known *
 smk_import_valid_label(const char *label, int label_len, gfp_t gfp)
-- 
2.43.0




More information about the Linux-security-module-archive mailing list