Skip to content

Commit a7b2553

Browse files
author
Ingo Molnar
committed
sched/headers: Only include <linux/entry-common.h> when CONFIG_GENERIC_ENTRY=y
This header is not (yet) standalone. Signed-off-by: Ingo Molnar <[email protected]>
1 parent ccdbf33 commit a7b2553

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/sched/core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
#include <linux/workqueue_api.h>
6464

6565
#ifdef CONFIG_PREEMPT_DYNAMIC
66-
# include <linux/entry-common.h>
66+
# ifdef CONFIG_GENERIC_ENTRY
67+
# include <linux/entry-common.h>
68+
# endif
6769
#endif
6870

6971
#include <uapi/linux/sched/types.h>

0 commit comments

Comments
 (0)