[tip: locking/core] locking/local_lock: Include more missing headers

tip-bot2 for Peter Zijlstra posted 1 patch 1 month ago
include/linux/local_lock_internal.h | 1 +
1 file changed, 1 insertion(+)
[tip: locking/core] locking/local_lock: Include more missing headers
Posted by tip-bot2 for Peter Zijlstra 1 month ago
The following commit has been merged into the locking/core branch of tip:

Commit-ID:     a45026cef17d1080c985adf28234d6c8475ad66f
Gitweb:        https://git.kernel.org/tip/a45026cef17d1080c985adf28234d6c8475ad66f
Author:        Peter Zijlstra <peterz@infradead.org>
AuthorDate:    Thu, 08 Jan 2026 11:14:24 +01:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Thu, 08 Jan 2026 11:21:57 +01:00

locking/local_lock: Include more missing headers

Ingo reported PREEMPT_RT=y builds fail building
lib/test_context-analysis.c.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 include/linux/local_lock_internal.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/local_lock_internal.h b/include/linux/local_lock_internal.h
index e8c4803..7843ab9 100644
--- a/include/linux/local_lock_internal.h
+++ b/include/linux/local_lock_internal.h
@@ -233,6 +233,7 @@ do {								\
 
 #else /* !CONFIG_PREEMPT_RT */
 
+#include <linux/sched.h>
 #include <linux/spinlock.h>
 
 /*