diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-03-15 10:33:53 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 10:33:53 +0100 |
commit | a7b2553b5ece1aba4b5994eef150d0a1269b5805 (patch) | |
tree | e399fee55055aee6149ce36ccc330a0609bfaddc | |
parent | ccdbf33c2349a0a867f46dde5f94b0715f6fa341 (diff) | |
download | linux-stable-a7b2553b5ece1aba4b5994eef150d0a1269b5805.tar.gz linux-stable-a7b2553b5ece1aba4b5994eef150d0a1269b5805.tar.bz2 linux-stable-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.c | 4 |
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> |