[PATCH] smack: fix kernel-doc warnings for smk_import_valid_label()
Casey Schaufler
casey at schaufler-ca.com
Wed Jul 2 02:46:32 UTC 2025
On 6/26/2025 9:47 AM, Konstantin Andreev wrote:
> 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>
Added to smack-next
> ---
> 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)
More information about the Linux-security-module-archive
mailing list