Skip to contentSkip to conversation

sched: Remove duplicated includes in sched.h

PATCH Applied GUO Zihua 2 participants 2 messages Aug 18, 2023 – Sep 18, 2023 Scheduler

lore
Share & tools
lore

GUO Zihua

author
#0 lore raw

PATCH 1/1 sched: Remove duplicated includes in 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.

---
 kernel/sched/sched.h | 9 ---------
 1 file changed, 9 deletions(-)
kernel/sched/sched.h +0 -9
index 04846272409c..91ee1aaf845a 100644
@@ -74,15 +74,6 @@
 
 #include "../workqueue_internal.h"
 
-#ifdef CONFIG_CGROUP_SCHED
-#include <linux/cgroup.h>
-#include <linux/psi.h>
-#endif
-
-#ifdef CONFIG_SCHED_DEBUG
-# include <linux/static_key.h>
-#endif
-
 #ifdef CONFIG_PARAVIRT
 # include <asm/paravirt.h>
 # include <asm/paravirt_api_clock.h>
Signature · 1 line
2.17.1
merge bot Applied
#1 lore raw

[tip: sched/core] sched/headers: Remove duplicated includes in kernel/sched/sched.h

The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     7ad0354d18ae05e9c8885251e234cbcf141f8972
Gitweb:        https://git.kernel.org/tip/7ad0354d18ae05e9c8885251e234cbcf141f8972
Author:        GUO Zihua <[email protected]>
AuthorDate:    Fri, 18 Aug 2023 09:56:33 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Mon, 18 Sep 2023 09:41:37 +02:00

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.

---
 kernel/sched/sched.h |  9 ---------
 1 file changed, 9 deletions(-)
kernel/sched/sched.h +0 -9
index 887468c..5f217b1 100644
@@ -74,15 +74,6 @@
 
 #include "../workqueue_internal.h"
 
-#ifdef CONFIG_CGROUP_SCHED
-#include <linux/cgroup.h>
-#include <linux/psi.h>
-#endif
-
-#ifdef CONFIG_SCHED_DEBUG
-# include <linux/static_key.h>
-#endif
-
 #ifdef CONFIG_PARAVIRT
 # include <asm/paravirt.h>
 # include <asm/paravirt_api_clock.h>