sched/headers: Only include <linux/entry-common.h> when CONFIG_GENERIC_ENTRY=y
authorIngo Molnar <mingo@kernel.org>
Tue, 15 Mar 2022 09:33:53 +0000 (10:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 15 Mar 2022 09:33:53 +0000 (10:33 +0100)
This header is not (yet) standalone.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c

index aa9e14ce94fb3db58a30239d79ad119ef3bd16b1..bf443f470f28750bfabef81c645cf49d589359ea 100644 (file)
@@ -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>