lkml.org 
[lkml]   [2023]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] sched/headers: remove duplicate included header
From
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

在 2023/5/6 23:39, 晏艳(采苓) 写道:
> linux/psi.h is included more than once.
>
> Signed-off-by: Yan Yan <yanyan.yan@antgroup.com>
> ---
> kernel/sched/build_utility.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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>

\
 
 \ /
  Last update: 2023-05-15 18:01    [W:0.067 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site