mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vedant Dave <vedantdave354@gmail.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: Ard Biesheuvel <ardb@kernel.org>,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	Vedant Dave <vedantdave354@gmail.com>
Subject: [PATCH] lib/crc: Fix kernel-doc for crc32init_le_generic
Date: Fri, 27 Nov 2026 13:40:01 +0530	[thread overview]
Message-ID: <20261127081001.327898-1-vedantdave354@gmail.com> (raw)

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


                 reply	other threads:[~2026-11-27  8:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127081001.327898-1-vedantdave354@gmail.com \
    --to=vedantdave354@gmail.com \
    --cc=ardb@kernel.org \
    --cc=ebiggers@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®