From nobody Tue Apr 7 16:31:43 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEBBA3C5528; Thu, 12 Mar 2026 11:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773314735; cv=none; b=J15MhTwCmvGPf85F0wm6d+yeiGBO3mBEuezdswFYwB4rnXEJ1Vp6mGtQGpBGc1NUIsimGvkL6i3JvYb9OzPtt9sz/MenXLDWq1lX3li3pogMfrx+g3ikb+K8OV6ndHRrcRja9e1IN5hX0qe5TRZ1IFKXeSJmH45r7MjsPiWqUcY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773314735; c=relaxed/simple; bh=R+Y55TIdNHYXfR7Sx4s1QWsMGSx1dy37yYyJLtpq7rs=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=p8aG3CTN9w4hopiNyrdA2RGVWEr2QgOQmHvBVPj9jlQilvB0hFuj+GLKXrEYD9V58nv1ZgDnGEi/PmC+MuxW+o1Sv0MkOkHEJxbGKzLWhyJVMD/MNgSwo/cyT8bcJZMz+o5YQ+2vZB02KGfGl9kG2roeJ2gcYkjsnOzRy8YO0mc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BZgFQdQ2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=CRkPs7lW; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BZgFQdQ2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CRkPs7lW" Date: Thu, 12 Mar 2026 11:25:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773314732; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4qKvNcDqjcWrOt5cx7NvwCppwxg8/aPJGseutjVOKXA=; b=BZgFQdQ2u8447LoY9EmnT9wEEo8RkHGbjXsGBOx00SrAlSNGKDQyhuXXI5drGRE2ybxNzW aQK1zd/m7ux3Gj2cqlXFzoAx118F5S/w2rbo5XIg7GquKGgORbkcW314eNrMN2tFS9m+BY P5T0/ISZIHLtKKR36zPYIuRe4drWDTH+fW2FE+0Qma1uT522tqRxDk5VlmGK085g8SaEiS QkrPPcGjkIcYMYRldBHQCC5kdFxST2Qd8vDBBksLZyYmr+01IPnsRCFcOcGCQo0trEJqFc YilSHqM6o0POga2dLHGrvILKeNKdUZAyxCnBQQjMQzmOqVDtSBAt8KPlvgaBZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773314732; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4qKvNcDqjcWrOt5cx7NvwCppwxg8/aPJGseutjVOKXA=; b=CRkPs7lWLUaSlq4N+eJD8ZkCmoLK2HqC7J4gc7tvBWfIAm+kMw4Qfwg7Cwf3IZxgCDgHTH xHrCuMJKnjpojdAg== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] hrtimer: Mark index and clockid of clock base as const Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260311-hrtimer-cleanups-v1-10-095357392669@linutronix.de> References: <20260311-hrtimer-cleanups-v1-10-095357392669@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177331473131.1647592.6404809125307376755.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/core branch of tip: Commit-ID: f12ef5cb4e035e15f0c324c41ff402441578ffda Gitweb: https://git.kernel.org/tip/f12ef5cb4e035e15f0c324c41ff402441= 578ffda Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Wed, 11 Mar 2026 11:15:19 +01:00 Committer: Thomas Gleixner 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=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner 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;