[PATCH] lib/crc: Fix kernel-doc for crc32init_le_generic
From: Vedant Dave
Date: Fri Nov 27 2026 - 03:11:16 EST
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(-)
diff --git a/lib/crc/gen_crc32table.c b/lib/crc/gen_crc32table.c
index 9a7f31658..b9ec94a68 100644
--- a/lib/crc/gen_crc32table.c
+++ b/lib/crc/gen_crc32table.c
@@ -9,7 +9,9 @@ static uint32_t crc32table_be[256];
static uint32_t crc32ctable_le[256];
/**
- * crc32init_le() - allocate and initialize LE table data
+ * crc32init_le_generic() - allocate and initialize LE table data
+ * @polynomial: CRC polynomial to use
+ * @tab: 256-entry table to fill
*
* crc is the crc of the byte i; other entries are filled in based on the
* fact that crctable[i^j] = crctable[i] ^ crctable[j].
--
2.56.1