summaryrefslogtreecommitdiff
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2022-03-15 12:33:53 +0300
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:33:53 +0300
commita7b2553b5ece1aba4b5994eef150d0a1269b5805 (patch)
treee399fee55055aee6149ce36ccc330a0609bfaddc /kernel/sched/core.c
parentccdbf33c2349a0a867f46dde5f94b0715f6fa341 (diff)
downloadlinux-a7b2553b5ece1aba4b5994eef150d0a1269b5805.tar.xz
sched/headers: Only include <linux/entry-common.h> when CONFIG_GENERIC_ENTRY=y
This header is not (yet) standalone. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index aa9e14ce94fb..bf443f470f28 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -63,7 +63,9 @@
#include <linux/workqueue_api.h>
#ifdef CONFIG_PREEMPT_DYNAMIC
-# include <linux/entry-common.h>
+# ifdef CONFIG_GENERIC_ENTRY
+# include <linux/entry-common.h>
+# endif
#endif
#include <uapi/linux/sched/types.h>