mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Thomas Weißschuh (Schneider Electric)" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: thomas.weissschuh@linutronix.de,
	Thomas Gleixner <tglx@kernel.org>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/core] hrtimer: Mark index and clockid of clock base as const
Date: Thu, 12 Mar 2026 11:25:31 -0000	[thread overview]
Message-ID: <177331473131.1647592.6404809125307376755.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260311-hrtimer-cleanups-v1-10-095357392669@linutronix.de>

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

Commit-ID:     f12ef5cb4e035e15f0c324c41ff402441578ffda
Gitweb:        https://git.kernel.org/tip/f12ef5cb4e035e15f0c324c41ff402441578ffda
Author:        Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
AuthorDate:    Wed, 11 Mar 2026 11:15:19 +01:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Thu, 12 Mar 2026 12:15:55 +01:00

hrtimer: Mark index and clockid of clock base as const

These fields are initialized once and are never supposed to change.

Mark them as const to make this explicit.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-10-095357392669@linutronix.de
---
 include/linux/hrtimer_defs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/hrtimer_defs.h b/include/linux/hrtimer_defs.h
index e6d4dc1..a03240c 100644
--- a/include/linux/hrtimer_defs.h
+++ b/include/linux/hrtimer_defs.h
@@ -26,8 +26,8 @@
  */
 struct hrtimer_clock_base {
 	struct hrtimer_cpu_base		*cpu_base;
-	unsigned int			index;
-	clockid_t			clockid;
+	const unsigned int		index;
+	const clockid_t			clockid;
 	seqcount_raw_spinlock_t		seq;
 	ktime_t				expires_next;
 	struct hrtimer			*running;

  reply	other threads:[~2026-03-12 11:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-11 10:15 [PATCH 00/12] hrtimer, timekeeping, tracing: various cleanups Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 01/12] scripts/gdb: timerlist: Adapt to move of tk_core Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 02/12] tracing: Use explicit array size instead of sentinel elements in symbol printing Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 03/12] timer_list: Print offset as signed integer Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 04/12] timekeeping: auxclock: Consistently use raw timekeeper for tk_setup_internals() Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] timekeeping/auxclock: " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 05/12] timekeeping: Mark offsets array as const Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 06/12] hrtimer: Remove hrtimer_get_expires_ns() Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 07/12] hrtimer: Don't zero-initialize ret in hrtimer_nanosleep() Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 08/12] hrtimer: Drop spurious space in 'enum hrtimer_base_type' Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 09/12] hrtimer: Drop unnecessary pointer indirection in hrtimer_expire_entry event Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 10/12] hrtimer: Mark index and clockid of clock base as const Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` tip-bot2 for Thomas Weißschuh (Schneider Electric) [this message]
2026-03-11 10:15 ` [PATCH 11/12] hrtimer: Remove trailing comma after HRTIMER_MAX_CLOCK_BASES Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)
2026-03-11 10:15 ` [PATCH 12/12] hrtimer: Add a helper to retrieve a hrtimer from its timerqueue node Thomas Weißschuh (Schneider Electric)
2026-03-12 11:25   ` [tip: timers/core] " tip-bot2 for Thomas Weißschuh (Schneider Electric)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=177331473131.1647592.6404809125307376755.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=tglx@kernel.org \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®