[tip: sched/core] sched/headers: Make the <linux/sched/deadline.h> header build standalone

tip-bot2 for Ingo Molnar posted 1 patch 4 years, 3 months ago
include/linux/sched/deadline.h | 2 ++
1 file changed, 2 insertions(+)
[tip: sched/core] sched/headers: Make the <linux/sched/deadline.h> header build standalone
Posted by tip-bot2 for Ingo Molnar 4 years, 3 months ago
The following commit has been merged into the sched/core branch of tip:

Commit-ID:     fbed5664b73830dcb1a19af4f7f1f1b424f54609
Gitweb:        https://git.kernel.org/tip/fbed5664b73830dcb1a19af4f7f1f1b424f54609
Author:        Ingo Molnar <mingo@kernel.org>
AuthorDate:    Tue, 22 Feb 2022 13:28:20 +01:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 23 Feb 2022 10:58:33 +01:00

sched/headers: Make the <linux/sched/deadline.h> header build standalone

This header depends on various scheduler definitions.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
---
 include/linux/sched/deadline.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/sched/deadline.h b/include/linux/sched/deadline.h
index 1aff00b..7c83d4d 100644
--- a/include/linux/sched/deadline.h
+++ b/include/linux/sched/deadline.h
@@ -6,6 +6,8 @@
  * NORMAL/BATCH tasks.
  */
 
+#include <linux/sched.h>
+
 #define MAX_DL_PRIO		0
 
 static inline int dl_prio(int prio)