[PATCH] cred: cred.h: fix kernel-doc warnings
Paul Moore
paul at paul-moore.com
Mon Mar 2 22:08:02 UTC 2026
On Mar 1, 2026 Randy Dunlap <rdunlap at infradead.org> wrote:
>
> Use the correct function parameter names, function names, or kernel-doc
> format, and add function return comment sections to avoid kernel-doc
> warnings:
>
> Warning: include/linux/cred.h:43 function parameter 'gi' not described
> in 'get_group_info'
> Warning: include/linux/cred.h:43 No description found for return value
> of 'get_group_info'
> Warning: include/linux/cred.h:213 No description found for return value
> of 'get_cred_many'
> Warning: include/linux/cred.h:260 function parameter '_cred' not described
> in 'put_cred_many'
> Warning: include/linux/cred.h:260 expecting prototype for put_cred().
> Prototype was for put_cred_many() instead
>
> Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
> ---
> Cc: Paul Moore <paul at paul-moore.com>
> Cc: Serge Hallyn <sergeh at kernel.org>
> Cc: linux-security-module at vger.kernel.org
>
> include/linux/cred.h | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
Merged into lsm/dev, thanks.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list