From: Andy Shevchenko Date: Thu, 6 Nov 2025 08:02:51 +0000 (+0100) Subject: bitops: Update kernel-doc in hweight.c to fix the issues with it X-Git-Tag: v6.19-rc1~87^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f15c3d715f1bf1025f88890eec7f3da210097a9;p=thirdparty%2Flinux.git bitops: Update kernel-doc in hweight.c to fix the issues with it The kernel-doc in lib/hweight.c is global to the file and currently has issues: Warning: lib/hweight.c:13 expecting prototype for hweightN(). Prototype was for __sw_hweight32() instead Warning: lib/hweight.c:13 function parameter 'w' not described in '__sw_hweight32' Update it accordingly. Signed-off-by: Andy Shevchenko Signed-off-by: Yury Norov (NVIDIA) --- diff --git a/lib/hweight.c b/lib/hweight.c index c94586b625518..0dfcafc3fd393 100644 --- a/lib/hweight.c +++ b/lib/hweight.c @@ -4,8 +4,8 @@ #include /** - * hweightN - returns the hamming weight of a N-bit word - * @x: the word to weigh + * DOC: __sw_hweightN - returns the hamming weight of a N-bit word + * @w: the word to weigh * * The Hamming Weight of a number is the total number of bits set in it. */