[PATCH -next] sched: Remove duplicated includes

From: GUO Zihua
Date: Thu Aug 10 2023 - 08:03:11 EST


Remove duplicated includes in kernel/sched/fair.c, kernel/sched/core.c
and kernel/sched/build_utility.c. Resolves checkincludes message.

Signed-off-by: GUO Zihua <guozihua@xxxxxxxxxx>
---
kernel/sched/build_utility.c | 1 -
kernel/sched/core.c | 2 --
kernel/sched/fair.c | 2 --
3 files changed, 5 deletions(-)

diff --git a/kernel/sched/build_utility.c b/kernel/sched/build_utility.c
index 99bdd96f454f..80a3df49ab47 100644
--- a/kernel/sched/build_utility.c
+++ b/kernel/sched/build_utility.c
@@ -34,7 +34,6 @@
#include <linux/nospec.h>
#include <linux/proc_fs.h>
#include <linux/psi.h>
-#include <linux/psi.h>
#include <linux/ptrace_api.h>
#include <linux/sched_clock.h>
#include <linux/security.h>
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 979ed6b40e65..73b61ed8988f 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -87,10 +87,8 @@
#include "stats.h"
#include "autogroup.h"

-#include "autogroup.h"
#include "pelt.h"
#include "smp.h"
-#include "stats.h"

#include "../workqueue_internal.h"
#include "../../io_uring/io-wq.h"
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 8db197b8f10d..4efe3039bfa1 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -51,8 +51,6 @@

#include <asm/switch_to.h>

-#include <linux/sched/cond_resched.h>
-
#include "sched.h"
#include "stats.h"
#include "autogroup.h"
--
2.17.1