lkml.org 
[lkml]   [2022]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH linux-next] sched: remove duplicate referenced header files
Date
From: Xu Panda <xu.panda@zte.com.cn>

linux/cgroup.h is included more than once,
and linux/static_key.h is included more than once.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
---
kernel/sched/sched.h | 5 -----
1 file changed, 5 deletions(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index f616e0cec20c..ab75e421a96b 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -75,14 +75,9 @@
#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>
--
2.15.2
\
 
 \ /
  Last update: 2022-09-12 10:58    [W:0.026 / U:0.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site