Re: [PATCH] lib/crc: Fix kernel-doc for crc32init_le_generic

From: Eric Biggers

Date: Fri Nov 27 2026 - 14:26:24 EST


On Fri, Nov 27, 2026 at 01:40:01PM +0530, Vedant Dave wrote:
> kernel-doc -none -Wall lib/crc/gen_crc32table.c reports:
>
> function parameter 'polynomial' not described in 'crc32init_le_generic'
> function parameter 'tab' not described in 'crc32init_le_generic'
> expecting prototype for crc32init_le(). Prototype was for
> crc32init_le_generic() instead
>
> The kernel-doc comment is named crc32init_le() but sits above
> crc32init_le_generic(), and it does not describe the @polynomial and
> @tab parameters. Rename the comment to match the function and
> document both parameters.
>
> Comment-only change with no functional difference. After the change,
> kernel-doc reports no warnings for this file.
>
> An AI coding assistant helped draft this change. I reviewed it and
> understand it.
>
> Signed-off-by: Vedant Dave <vedantdave354@xxxxxxxxx>
> ---
> lib/crc/gen_crc32table.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=crc-next

Thanks,

- Eric