mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] lib/crc: Fix kernel-doc for crc32init_le_generic
@ 2026-11-27  8:10 Vedant Dave
  2026-11-27 19:26 ` Eric Biggers
  0 siblings, 1 reply; 2+ messages in thread
From: Vedant Dave @ 2026-11-27  8:10 UTC (permalink / raw)
  To: Eric Biggers; +Cc: Ard Biesheuvel, linux-crypto, linux-kernel, Vedant Dave

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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-27 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27  8:10 [PATCH] lib/crc: Fix kernel-doc for crc32init_le_generic Vedant Dave
2026-11-27 19:26 ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®