* [PATCH] local_lock: fix all kernel-doc warnings
@ 2025-11-28 6:59 Randy Dunlap
2025-11-28 10:09 ` Peter Zijlstra
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Randy Dunlap @ 2025-11-28 6:59 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Andrew Morton, Thomas Gleixner, Peter Zijlstra,
Ingo Molnar, Will Deacon, Waiman Long
Modify kernel-doc comments in local_lock.h to prevent warnings:
Warning: include/linux/local_lock.h:9 function parameter 'lock' not
described in 'local_lock_init'
Warning: include/linux/local_lock.h:56 function parameter 'lock' not
described in 'local_trylock_init'
Warning: include/linux/local_lock.h:56 expecting prototype for
local_lock_init(). Prototype was for local_trylock_init() instead
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will@kernel.org>
Cc: Waiman Long <longman@redhat.com>
---
include/linux/local_lock.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- linux-next-20251127.orig/include/linux/local_lock.h
+++ linux-next-20251127/include/linux/local_lock.h
@@ -6,6 +6,7 @@
/**
* local_lock_init - Runtime initialize a lock instance
+ * @lock: The lock variable
*/
#define local_lock_init(lock) __local_lock_init(lock)
@@ -52,7 +53,8 @@
__local_unlock_irqrestore(this_cpu_ptr(lock), flags)
/**
- * local_lock_init - Runtime initialize a lock instance
+ * local_trylock_init - Runtime initialize a lock instance
+ * @lock: The lock variable
*/
#define local_trylock_init(lock) __local_trylock_init(lock)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] local_lock: fix all kernel-doc warnings
2025-11-28 6:59 [PATCH] local_lock: fix all kernel-doc warnings Randy Dunlap
@ 2025-11-28 10:09 ` Peter Zijlstra
2025-11-29 11:49 ` [tip: locking/core] " tip-bot2 for Randy Dunlap
2025-12-01 6:01 ` [tip: locking/core] locking/local_lock: Fix " tip-bot2 for Randy Dunlap
2 siblings, 0 replies; 4+ messages in thread
From: Peter Zijlstra @ 2025-11-28 10:09 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Andrew Morton, Thomas Gleixner, Ingo Molnar,
Will Deacon, Waiman Long
On Thu, Nov 27, 2025 at 10:59:25PM -0800, Randy Dunlap wrote:
> Modify kernel-doc comments in local_lock.h to prevent warnings:
>
> Warning: include/linux/local_lock.h:9 function parameter 'lock' not
> described in 'local_lock_init'
> Warning: include/linux/local_lock.h:56 function parameter 'lock' not
> described in 'local_trylock_init'
> Warning: include/linux/local_lock.h:56 expecting prototype for
> local_lock_init(). Prototype was for local_trylock_init() instead
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: locking/core] local_lock: fix all kernel-doc warnings
2025-11-28 6:59 [PATCH] local_lock: fix all kernel-doc warnings Randy Dunlap
2025-11-28 10:09 ` Peter Zijlstra
@ 2025-11-29 11:49 ` tip-bot2 for Randy Dunlap
2025-12-01 6:01 ` [tip: locking/core] locking/local_lock: Fix " tip-bot2 for Randy Dunlap
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Randy Dunlap @ 2025-11-29 11:49 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Randy Dunlap, Peter Zijlstra (Intel), x86, linux-kernel
The following commit has been merged into the locking/core branch of tip:
Commit-ID: e7194ffe9a0411122980b031c0bbb455a5106266
Gitweb: https://git.kernel.org/tip/e7194ffe9a0411122980b031c0bbb455a5106266
Author: Randy Dunlap <rdunlap@infradead.org>
AuthorDate: Thu, 27 Nov 2025 22:59:25 -08:00
Committer: Peter Zijlstra <peterz@infradead.org>
CommitterDate: Fri, 28 Nov 2025 11:09:02 +01:00
local_lock: fix all kernel-doc warnings
Modify kernel-doc comments in local_lock.h to prevent warnings:
Warning: include/linux/local_lock.h:9 function parameter 'lock' not
described in 'local_lock_init'
Warning: include/linux/local_lock.h:56 function parameter 'lock' not
described in 'local_trylock_init'
Warning: include/linux/local_lock.h:56 expecting prototype for
local_lock_init(). Prototype was for local_trylock_init() instead
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251128065925.917917-1-rdunlap@infradead.org
---
include/linux/local_lock.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/local_lock.h b/include/linux/local_lock.h
index 0d91d06..b0e6ab3 100644
--- a/include/linux/local_lock.h
+++ b/include/linux/local_lock.h
@@ -6,6 +6,7 @@
/**
* local_lock_init - Runtime initialize a lock instance
+ * @lock: The lock variable
*/
#define local_lock_init(lock) __local_lock_init(lock)
@@ -52,7 +53,8 @@
__local_unlock_irqrestore(this_cpu_ptr(lock), flags)
/**
- * local_lock_init - Runtime initialize a lock instance
+ * local_trylock_init - Runtime initialize a lock instance
+ * @lock: The lock variable
*/
#define local_trylock_init(lock) __local_trylock_init(lock)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: locking/core] locking/local_lock: Fix all kernel-doc warnings
2025-11-28 6:59 [PATCH] local_lock: fix all kernel-doc warnings Randy Dunlap
2025-11-28 10:09 ` Peter Zijlstra
2025-11-29 11:49 ` [tip: locking/core] " tip-bot2 for Randy Dunlap
@ 2025-12-01 6:01 ` tip-bot2 for Randy Dunlap
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Randy Dunlap @ 2025-12-01 6:01 UTC (permalink / raw)
To: linux-tip-commits
Cc: Randy Dunlap, Peter Zijlstra (Intel), Ingo Molnar, x86, linux-kernel
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 43decb6b628eb033a1b6188e5018773c0d38be1d
Gitweb: https://git.kernel.org/tip/43decb6b628eb033a1b6188e5018773c0d38be1d
Author: Randy Dunlap <rdunlap@infradead.org>
AuthorDate: Thu, 27 Nov 2025 22:59:25 -08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Mon, 01 Dec 2025 06:56:16 +01:00
locking/local_lock: Fix all kernel-doc warnings
Modify kernel-doc comments in local_lock.h to prevent warnings:
Warning: include/linux/local_lock.h:9 function parameter 'lock' not described in 'local_lock_init'
Warning: include/linux/local_lock.h:56 function parameter 'lock' not described in 'local_trylock_init'
Warning: include/linux/local_lock.h:56 expecting prototype for local_lock_init(). Prototype was for local_trylock_init() instead
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20251128065925.917917-1-rdunlap@infradead.org
---
include/linux/local_lock.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/local_lock.h b/include/linux/local_lock.h
index 0d91d06..b0e6ab3 100644
--- a/include/linux/local_lock.h
+++ b/include/linux/local_lock.h
@@ -6,6 +6,7 @@
/**
* local_lock_init - Runtime initialize a lock instance
+ * @lock: The lock variable
*/
#define local_lock_init(lock) __local_lock_init(lock)
@@ -52,7 +53,8 @@
__local_unlock_irqrestore(this_cpu_ptr(lock), flags)
/**
- * local_lock_init - Runtime initialize a lock instance
+ * local_trylock_init - Runtime initialize a lock instance
+ * @lock: The lock variable
*/
#define local_trylock_init(lock) __local_trylock_init(lock)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-01 6:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-28 6:59 [PATCH] local_lock: fix all kernel-doc warnings Randy Dunlap
2025-11-28 10:09 ` Peter Zijlstra
2025-11-29 11:49 ` [tip: locking/core] " tip-bot2 for Randy Dunlap
2025-12-01 6:01 ` [tip: locking/core] locking/local_lock: Fix " tip-bot2 for Randy Dunlap
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®