[tip: timers/core] hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h

From: tip-bot2 for Thomas Weißschuh (Schneider Electric)

Date: Tue Jul 07 2026 - 17:50:18 EST


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

Commit-ID: 071993aac72ea8e6f9986bf41101974e8faa2eca
Gitweb: https://git.kernel.org/tip/071993aac72ea8e6f9986bf41101974e8faa2eca
Author: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@xxxxxxxxxxxxx>
AuthorDate: Thu, 02 Jul 2026 11:42:03 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 07 Jul 2026 23:43:45 +02:00

hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h

Multiple used types and symbols are only visible through transitive
dependency chains.

Include the headers explicitly as those chains are going to go away.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260702-hrtimer-header-dependencies-v1-6-c50b19bda473@xxxxxxxxxxxxx
---
include/linux/hrtimer_rearm.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/include/linux/hrtimer_rearm.h b/include/linux/hrtimer_rearm.h
index a6f2e5d..17a8182 100644
--- a/include/linux/hrtimer_rearm.h
+++ b/include/linux/hrtimer_rearm.h
@@ -2,7 +2,12 @@
#ifndef _LINUX_HRTIMER_REARM_H
#define _LINUX_HRTIMER_REARM_H

+#include <linux/types.h>
+
#ifdef CONFIG_HRTIMER_REARM_DEFERRED
+#include <linux/irqflags.h>
+#include <linux/lockdep.h>
+#include <linux/preempt.h>
#include <linux/thread_info.h>

void __hrtimer_rearm_deferred(void);