[PATCH v2] sched/fair: remove unneeded header files

From: Miaohe Lin
Date: Fri Jun 02 2023 - 23:13:59 EST


There're some useless header files in fair.c. Remove them.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202305280847.ss7JHZEe-lkp@xxxxxxxxx/
Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
---
v2:
fix warning reported by kernel test robot.
---
kernel/sched/fair.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 373ff5f55884..1b626310cf8c 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -21,16 +21,11 @@
* Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra
*/
#include <linux/energy_model.h>
-#include <linux/mmap_lock.h>
#include <linux/hugetlb_inline.h>
#include <linux/jiffies.h>
-#include <linux/mm_api.h>
-#include <linux/highmem.h>
#include <linux/spinlock_api.h>
#include <linux/cpumask_api.h>
-#include <linux/lockdep_api.h>
#include <linux/softirq.h>
-#include <linux/refcount_api.h>
#include <linux/topology.h>
#include <linux/sched/clock.h>
#include <linux/sched/cond_resched.h>
@@ -42,8 +37,6 @@
#include <linux/interrupt.h>
#include <linux/memory-tiers.h>
#include <linux/mempolicy.h>
-#include <linux/mutex_api.h>
-#include <linux/profile.h>
#include <linux/psi.h>
#include <linux/ratelimit.h>
#include <linux/task_work.h>
--
2.27.0