mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] posix-timers: clean up kernel-doc warnings
@ 2026-07-20  3:12 Randy Dunlap
  2026-07-20  3:12 ` [PATCH 2/2] posix-cpu-timers: avoid " Randy Dunlap
  2026-07-20 14:07 ` [tip: timers/core] posix-timers: Clean up " tip-bot2 for Randy Dunlap
  0 siblings, 2 replies; 4+ messages in thread
From: Randy Dunlap @ 2026-07-20  3:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Anna-Maria Behnsen, Frederic Weisbecker, Thomas Gleixner

Use the struct keyword when describing a struct.
Add missing kernel-doc for @it_pid_type.

Warning: ./include/linux/posix-timers.h:58 cannot understand
 function prototype: 'struct cpu_timer'
Warning: ./include/linux/posix-timers.h:222 struct member
 'it_pid_type' not described in 'k_itimer'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Anna-Maria Behnsen <anna-maria@linutronix.de>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>

 include/linux/posix-timers.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-next-20260717.orig/include/linux/posix-timers.h
+++ linux-next-20260717/include/linux/posix-timers.h
@@ -47,7 +47,7 @@ static inline bool clockid_aux_valid(clo
 #include <linux/signal_types.h>
 
 /**
- * cpu_timer - Posix CPU timer representation for k_itimer
+ * struct cpu_timer - Posix CPU timer representation for k_itimer
  * @node:	timerqueue node to queue in the task/sig
  * @head:	timerqueue head on which this timer is queued
  * @pid:	Pointer to target task PID
@@ -174,6 +174,7 @@ static inline void posix_cputimers_init_
  * @it_sigqueue_seq:	The sequence count at the point where the signal was queued
  * @it_sigev_notify:	The notify word of sigevent struct for signal delivery
  * @it_interval:	The interval for periodic timers
+ * @it_pid_type:	The type of the PID
  * @it_signal:		Pointer to the creators signal struct
  * @it_pid:		The pid of the process/task targeted by the signal
  * @it_process:		The task to wakeup on clock_nanosleep (CPU timers)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] posix-cpu-timers: avoid kernel-doc warnings
  2026-07-20  3:12 [PATCH 1/2] posix-timers: clean up kernel-doc warnings Randy Dunlap
@ 2026-07-20  3:12 ` Randy Dunlap
  2026-07-20 14:07   ` [tip: timers/core] posix-cpu-timers: Avoid " tip-bot2 for Randy Dunlap
  2026-07-20 14:07 ` [tip: timers/core] posix-timers: Clean up " tip-bot2 for Randy Dunlap
  1 sibling, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2026-07-20  3:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Anna-Maria Behnsen, Frederic Weisbecker, Thomas Gleixner

Use the struct keyword when describing a struct. Without that, the
type defaults to function.

Warning: ./include/linux/posix-timers_types.h:40 cannot understand
 function prototype: 'struct posix_cputimer_base'
Warning: ./include/linux/posix-timers_types.h:55 cannot understand
 function prototype: 'struct posix_cputimers'
Warning: ./include/linux/posix-timers_types.h:67 cannot understand
 function prototype: 'struct posix_cputimers_work'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Anna-Maria Behnsen <anna-maria@linutronix.de>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>

 include/linux/posix-timers_types.h |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- linux-next-20260717.orig/include/linux/posix-timers_types.h
+++ linux-next-20260717/include/linux/posix-timers_types.h
@@ -34,7 +34,7 @@
 #ifdef CONFIG_POSIX_TIMERS
 
 /**
- * posix_cputimer_base - Container per posix CPU clock
+ * struct posix_cputimer_base - Container per posix CPU clock
  * @nextevt:		Earliest-expiration cache
  * @tqhead:		timerqueue head for cpu_timers
  */
@@ -44,7 +44,7 @@ struct posix_cputimer_base {
 };
 
 /**
- * posix_cputimers - Container for posix CPU timer related data
+ * struct posix_cputimers - Container for posix CPU timer related data
  * @bases:		Base container for posix CPU clocks
  * @timers_active:	Timers are queued.
  * @expiry_active:	Timer expiry is active. Used for
@@ -60,7 +60,8 @@ struct posix_cputimers {
 };
 
 /**
- * posix_cputimers_work - Container for task work based posix CPU timer expiry
+ * struct posix_cputimers_work - Container for task work based posix
+ * CPU timer expiry
  * @work:	The task work to be scheduled
  * @mutex:	Mutex held around expiry in context of this task work
  * @scheduled:  @work has been scheduled already, no further processing

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tip: timers/core] posix-cpu-timers: Avoid kernel-doc warnings
  2026-07-20  3:12 ` [PATCH 2/2] posix-cpu-timers: avoid " Randy Dunlap
@ 2026-07-20 14:07   ` tip-bot2 for Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Randy Dunlap @ 2026-07-20 14:07 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Randy Dunlap, Thomas Gleixner, x86, linux-kernel

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

Commit-ID:     98680a85df888f86e56ec12d78b2de730426e5af
Gitweb:        https://git.kernel.org/tip/98680a85df888f86e56ec12d78b2de730426e5af
Author:        Randy Dunlap <rdunlap@infradead.org>
AuthorDate:    Sun, 19 Jul 2026 20:12:36 -07:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Mon, 20 Jul 2026 16:05:42 +02:00

posix-cpu-timers: Avoid kernel-doc warnings

Use the struct keyword when describing a struct. Without that, the
type defaults to function.

Warning: ./include/linux/posix-timers_types.h:40 cannot understand
 function prototype: 'struct posix_cputimer_base'
Warning: ./include/linux/posix-timers_types.h:55 cannot understand
 function prototype: 'struct posix_cputimers'
Warning: ./include/linux/posix-timers_types.h:67 cannot understand
 function prototype: 'struct posix_cputimers_work'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260720031236.3070575-2-rdunlap@infradead.org
---
 include/linux/posix-timers_types.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/posix-timers_types.h b/include/linux/posix-timers_types.h
index a4712c1..b40cf35 100644
--- a/include/linux/posix-timers_types.h
+++ b/include/linux/posix-timers_types.h
@@ -34,7 +34,7 @@
 #ifdef CONFIG_POSIX_TIMERS
 
 /**
- * posix_cputimer_base - Container per posix CPU clock
+ * struct posix_cputimer_base - Container per posix CPU clock
  * @nextevt:		Earliest-expiration cache
  * @tqhead:		timerqueue head for cpu_timers
  */
@@ -44,7 +44,7 @@ struct posix_cputimer_base {
 };
 
 /**
- * posix_cputimers - Container for posix CPU timer related data
+ * struct posix_cputimers - Container for posix CPU timer related data
  * @bases:		Base container for posix CPU clocks
  * @timers_active:	Timers are queued.
  * @expiry_active:	Timer expiry is active. Used for
@@ -60,7 +60,7 @@ struct posix_cputimers {
 };
 
 /**
- * posix_cputimers_work - Container for task work based posix CPU timer expiry
+ * struct posix_cputimers_work - Container for task work based posix CPU timer expiry
  * @work:	The task work to be scheduled
  * @mutex:	Mutex held around expiry in context of this task work
  * @scheduled:  @work has been scheduled already, no further processing

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tip: timers/core] posix-timers: Clean up kernel-doc warnings
  2026-07-20  3:12 [PATCH 1/2] posix-timers: clean up kernel-doc warnings Randy Dunlap
  2026-07-20  3:12 ` [PATCH 2/2] posix-cpu-timers: avoid " Randy Dunlap
@ 2026-07-20 14:07 ` tip-bot2 for Randy Dunlap
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot2 for Randy Dunlap @ 2026-07-20 14:07 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Randy Dunlap, Thomas Gleixner, x86, linux-kernel

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

Commit-ID:     151ce4cf88cf2ab647d14064140f516bd78209b2
Gitweb:        https://git.kernel.org/tip/151ce4cf88cf2ab647d14064140f516bd78209b2
Author:        Randy Dunlap <rdunlap@infradead.org>
AuthorDate:    Sun, 19 Jul 2026 20:12:35 -07:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Mon, 20 Jul 2026 16:05:42 +02:00

posix-timers: Clean up kernel-doc warnings

Use the struct keyword when describing a struct.
Add missing kernel-doc for @it_pid_type.

Warning: ./include/linux/posix-timers.h:58 cannot understand
 function prototype: 'struct cpu_timer'
Warning: ./include/linux/posix-timers.h:222 struct member
 'it_pid_type' not described in 'k_itimer'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260720031236.3070575-1-rdunlap@infradead.org
---
 include/linux/posix-timers.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h
index 4d3dbce..4117827 100644
--- a/include/linux/posix-timers.h
+++ b/include/linux/posix-timers.h
@@ -47,7 +47,7 @@ static inline bool clockid_aux_valid(clockid_t id)
 #include <linux/signal_types.h>
 
 /**
- * cpu_timer - Posix CPU timer representation for k_itimer
+ * struct cpu_timer - Posix CPU timer representation for k_itimer
  * @node:	timerqueue node to queue in the task/sig
  * @head:	timerqueue head on which this timer is queued
  * @pid:	Pointer to target task PID
@@ -174,6 +174,7 @@ static inline void posix_cputimers_init_work(void) { }
  * @it_sigqueue_seq:	The sequence count at the point where the signal was queued
  * @it_sigev_notify:	The notify word of sigevent struct for signal delivery
  * @it_interval:	The interval for periodic timers
+ * @it_pid_type:	The type of the PID
  * @it_signal:		Pointer to the creators signal struct
  * @it_pid:		The pid of the process/task targeted by the signal
  * @it_process:		The task to wakeup on clock_nanosleep (CPU timers)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-20 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20  3:12 [PATCH 1/2] posix-timers: clean up kernel-doc warnings Randy Dunlap
2026-07-20  3:12 ` [PATCH 2/2] posix-cpu-timers: avoid " Randy Dunlap
2026-07-20 14:07   ` [tip: timers/core] posix-cpu-timers: Avoid " tip-bot2 for Randy Dunlap
2026-07-20 14:07 ` [tip: timers/core] posix-timers: Clean up " 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®