[PATCH v2] bitops: fix kernel-doc parameter name for parity8()

Kit Dallege posted 1 patch 3 weeks, 1 day ago
include/linux/bitops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] bitops: fix kernel-doc parameter name for parity8()
Posted by Kit Dallege 3 weeks, 1 day ago
The kernel-doc comment for parity8() documents the parameter as @value
but the actual parameter name is @val. Fix the mismatch.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Kit Dallege <xaum.io@gmail.com>
---
 include/linux/bitops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index ea7898cc5903..1fe46703792f 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -230,7 +230,7 @@ static inline int get_count_order_long(unsigned long l)
 
 /**
  * parity8 - get the parity of an u8 value
- * @value: the value to be examined
+ * @val: the value to be examined
  *
  * Determine the parity of the u8 argument.
  *
-- 
2.53.0
Re: [PATCH v2] bitops: fix kernel-doc parameter name for parity8()
Posted by Yury Norov 2 weeks, 5 days ago
On Sun, Mar 15, 2026 at 06:08:41PM +0100, Kit Dallege wrote:
> The kernel-doc comment for parity8() documents the parameter as @value
> but the actual parameter name is @val. Fix the mismatch.
> 
> Assisted-by: Claude:claude-opus-4-6
> Signed-off-by: Kit Dallege <xaum.io@gmail.com>

Applied, thanks.

> ---
>  include/linux/bitops.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/bitops.h b/include/linux/bitops.h
> index ea7898cc5903..1fe46703792f 100644
> --- a/include/linux/bitops.h
> +++ b/include/linux/bitops.h
> @@ -230,7 +230,7 @@ static inline int get_count_order_long(unsigned long l)
>  
>  /**
>   * parity8 - get the parity of an u8 value
> - * @value: the value to be examined
> + * @val: the value to be examined
>   *
>   * Determine the parity of the u8 argument.
>   *
> -- 
> 2.53.0