]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bitops: Update kernel-doc in hweight.c to fix the issues with it
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Nov 2025 08:02:51 +0000 (09:02 +0100)
committerYury Norov (NVIDIA) <yury.norov@gmail.com>
Thu, 6 Nov 2025 16:51:04 +0000 (11:51 -0500)
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
lib/hweight.c

index c94586b6255187906cfde38fda8b84f33c9fc21f..0dfcafc3fd393dc0f929fdaeb730bdf765b1ad15 100644 (file)
@@ -4,8 +4,8 @@
 #include <asm/types.h>
 
 /**
- * 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.
  */