Re: [PATCH] string: Fix missing kernel-doc descriptions in string.h

From: Andy Shevchenko

Date: Tue Nov 18 2025 - 13:27:28 EST


On Tue, Nov 18, 2025 at 06:00:08PM +0000, Kriish Sharma wrote:
> While running kernel-doc validation, several warnings were emitted for
> functions in include/linux/string.h due to missing return value
> documentation or missing parameter descriptions:
>
> Warning: include/linux/string.h:375 No description found for return value of 'kbasename'
> Warning: include/linux/string.h:560 No description found for return value of 'strstarts'
> WARNING: include/linux/string.h:573 function parameter 'str' not described in 'strends'
> WARNING: include/linux/string.h:573 function parameter 'suffix' not described in 'strends'
>
> This patch adds the missing "Returns:" sections for kbasename() and
> strstarts(), and provides parameter descriptions for strends().
> These changes resolve all kernel-doc warnings in this header.

strends() fixes are in Bart's tree, will be soon in Linux Next I suppose.
The rest seems good.

--
With Best Regards,
Andy Shevchenko