From: GUO Zihua Date: Fri, 18 Aug 2023 01:56:33 +0000 (+0800) Subject: sched/headers: Remove duplicated includes in kernel/sched/sched.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7ad0354d18ae05e9c8885251e234cbcf141f8972;p=linux.git sched/headers: Remove duplicated includes in kernel/sched/sched.h Remove duplicated includes of linux/cgroup.h and linux/psi.h. Both of these includes are included regardless of the config and they are all protected by ifndef, so no point including them again. Signed-off-by: GUO Zihua Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20230818015633.18370-1-guozihua@huawei.com --- diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 887468c48ff68..5f217b1e8f1cd 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -74,15 +74,6 @@ #include "../workqueue_internal.h" -#ifdef CONFIG_CGROUP_SCHED -#include -#include -#endif - -#ifdef CONFIG_SCHED_DEBUG -# include -#endif - #ifdef CONFIG_PARAVIRT # include # include