[tip: timers/core] x86/speculation: Explicitly include linux/types.h

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

Date: Tue Jul 07 2026 - 17:49:57 EST


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

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

x86/speculation: Explicitly include linux/types.h

The usage of 'bool' requires linux/types.h, which is currently only
included through a transitive dependency chain.

Include linux/types.h as that chain is 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-7-c50b19bda473@xxxxxxxxxxxxx
---
arch/x86/include/asm/nospec-branch.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/include/asm/nospec-branch.h b/arch/x86/include/asm/nospec-branch.h
index 4f4b5e8..6734203 100644
--- a/arch/x86/include/asm/nospec-branch.h
+++ b/arch/x86/include/asm/nospec-branch.h
@@ -6,6 +6,7 @@
#include <linux/static_key.h>
#include <linux/objtool.h>
#include <linux/linkage.h>
+#include <linux/types.h>

#include <asm/alternative.h>
#include <asm/cpufeatures.h>