Skip to content

Commit

Permalink
sched/headers: Only include <linux/entry-common.h> when CONFIG_GENERI…
Browse files Browse the repository at this point in the history
…C_ENTRY=y

This header is not (yet) standalone.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Ingo Molnar committed Mar 15, 2022
1 parent ccdbf33 commit a7b2553
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a7b2553

Please sign in to comment.