sched/headers: remove duplicate included header
PATCH 1/1 sched/headers: remove duplicate included header
linux/psi.h is included more than once.
--- kernel/sched/build_utility.c | 1 - 1 file changed, 1 deletion(-)
kernel/sched/build_utility.c +0 -1
@@ -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>
Signature · 1 line
2.32.0.3.g01195cf9f
Ping.
It seems that removing the two same included lines is ok. Because the following "sched.h" also includes psi.h.
Any comments?
Thanks,
-Yan Yan
Quoted 19 lines · 晏艳(采苓)
linux/psi.his included more than once.Signed-off-by Yan Yan <[email protected]>--- kernel/sched/build_utility.c | 1 - 1 file changed, 1 deletion(-)kernel/sched/build_utility.c +0
-1@@ -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>
Ping, any comments?
thanks,
-Yan Yan
Quoted 30 lines · Yan Yan
Ping.
It seems that removing the two same included lines is ok. Because the following "
sched.h" also includespsi.h.Any comments?
Thanks,
-Yan Yan
Quoted 19 lines · 晏艳(采苓)
linux/psi.his included more than once.Signed-off-by Yan Yan <[email protected]>---
kernel/sched/build_utility.c| 1 -1 file changed, 1 deletion(-)kernel/sched/build_utility.c +0
-1@@ -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>
Le 22/05/2023 à 04:26, Yan Yan(cailing) a écrit :
Quoted 12 lines
Ping, any comments?
thanks,
-Yan Yan
Quoted 5 lines · Yan Yan
Ping.
It seems that removing the two same included lines is ok. Because the following "
sched.h" also includespsi.h.Any comments?
FWIW, yes, looks good.
If you want to ga that way, their are some other potential removal candidates in build_utility.c:
linux/sched/mm.h
linux/cpufreq.h
linux/ctype.h
linux/proc_fs.h
linux/spinlock_api.h
linux/wait_api.h
linux/workqueue_api.h
CJ
Quoted 26 lines
Quoted 25 lines
Thanks,
-Yan Yan
Quoted 19 lines · 晏艳(采苓)
linux/psi.his included more than once.Signed-off-by Yan Yan <[email protected]>---
kernel/sched/build_utility.c| 1 -1 file changed, 1 deletion(-)kernel/sched/build_utility.c +0
-1@@ -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>