Skip to contentSkip to conversation

futex: add missing function parameter comments

PATCH Applied Randy Dunlap 3 participants 3 messages Mar 4 – Mar 9

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 futex: add missing function parameter comments

Correct or add the missing function parameter kernel-doc comments to avoid warnings:

Warning: include/asm-generic/futex.h:38 function parameter 'op' not
described in 'futex_atomic_op_inuser_local'
Warning: include/asm-generic/futex.h:38 function parameter 'oparg' not
described in 'futex_atomic_op_inuser_local'
Warning: include/asm-generic/futex.h:38 function parameter 'oval' not
described in 'futex_atomic_op_inuser_local'

---
v2: clarify descriptions (André)

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Darren Hart <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc André Almeida <[email protected]>
Cc Arnd Bergmann <[email protected]>
 include/asm-generic/futex.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/asm-generic/futex.h +3 -1
@@ -25,7 +25,9 @@
  *			  argument and comparison of the previous
  *			  futex value with another constant.
  *
- * @encoded_op:	encoded operation to execute
+ * @op:		operation to execute
+ * @oparg:	argument of the operation
+ * @oval:	previous value at @uaddr on successful return
  * @uaddr:	pointer to user space address
  *
  * Return:
reviewer Reviewed-by on v2 1/1
#1 lore raw

Em 03/03/2026 21:50, Randy Dunlap escreveu:

Quoted 11 lines

Correct or add the missing function parameter kernel-doc comments to avoid warnings:

Warning: include/asm-generic/futex.h:38 function parameter 'op' not
described in 'futex_atomic_op_inuser_local'
Warning: include/asm-generic/futex.h:38 function parameter 'oparg' not
described in 'futex_atomic_op_inuser_local'
Warning: include/asm-generic/futex.h:38 function parameter 'oval' not
described in 'futex_atomic_op_inuser_local'

merge bot Applied
#2 lore raw
In reply to Randy Dunlap
The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     0da9ca4c08e709144a1bd2f765c14205960ac64d
Gitweb:        https://git.kernel.org/tip/0da9ca4c08e709144a1bd2f765c14205960ac64d
Author:        Randy Dunlap <[email protected]>
AuthorDate:    Tue, 03 Mar 2026 16:50:03 -08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Sun, 08 Mar 2026 11:06:47 +01:00

futex: add missing function parameter comments

Correct or add the missing function parameter kernel-doc comments to avoid warnings:

Warning: include/asm-generic/futex.h:38 function parameter 'op' not
described in 'futex_atomic_op_inuser_local'
Warning: include/asm-generic/futex.h:38 function parameter 'oparg' not
described in 'futex_atomic_op_inuser_local'
Warning: include/asm-generic/futex.h:38 function parameter 'oval' not
described in 'futex_atomic_op_inuser_local'

---
 include/asm-generic/futex.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/asm-generic/futex.h +3 -1
index 2a19215..fbbcfd8 100644
@@ -25,7 +25,9 @@
  *			  argument and comparison of the previous
  *			  futex value with another constant.
  *
- * @encoded_op:	encoded operation to execute
+ * @op:		operation to execute
+ * @oparg:	argument of the operation
+ * @oval:	previous value at @uaddr on successful return
  * @uaddr:	pointer to user space address
  *
  * Return: