summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2022-03-15 10:33:53 +0100
committerIngo Molnar <mingo@kernel.org>2022-03-15 10:33:53 +0100
commita7b2553b5ece1aba4b5994eef150d0a1269b5805 (patch)
treee399fee55055aee6149ce36ccc330a0609bfaddc
parentMerge tag 'v5.17-rc8' into sched/core, to pick up fixes (diff)
downloadlinux-a7b2553b5ece1aba4b5994eef150d0a1269b5805.tar.xz
linux-a7b2553b5ece1aba4b5994eef150d0a1269b5805.zip
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>
-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>