[PATCH -next] selftests/sched_ext: Remove duplicate sched.h header

Jiapeng Chong posted 1 patch 2 months, 1 week ago
tools/testing/selftests/sched_ext/hotplug.c | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] selftests/sched_ext: Remove duplicate sched.h header
Posted by Jiapeng Chong 2 months, 1 week ago
./tools/testing/selftests/sched_ext/hotplug.c: sched.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22941
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 tools/testing/selftests/sched_ext/hotplug.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/sched_ext/hotplug.c b/tools/testing/selftests/sched_ext/hotplug.c
index 1c9ceb661c43..0cfbb111a2d0 100644
--- a/tools/testing/selftests/sched_ext/hotplug.c
+++ b/tools/testing/selftests/sched_ext/hotplug.c
@@ -6,7 +6,6 @@
 #include <bpf/bpf.h>
 #include <sched.h>
 #include <scx/common.h>
-#include <sched.h>
 #include <sys/wait.h>
 #include <unistd.h>
 
-- 
2.43.5
Re: [PATCH -next] selftests/sched_ext: Remove duplicate sched.h header
Posted by Tejun Heo 1 month, 3 weeks ago
On Fri, Jul 25, 2025 at 05:04:12PM +0800, Jiapeng Chong wrote:
> ./tools/testing/selftests/sched_ext/hotplug.c: sched.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22941
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Applied to sched_ext/for-6.17-fixes.

Thanks.

-- 
tejun
Re: [PATCH -next] selftests/sched_ext: Remove duplicate sched.h header
Posted by Andrea Righi 2 months, 1 week ago
On Fri, Jul 25, 2025 at 05:04:12PM +0800, Jiapeng Chong wrote:
> ./tools/testing/selftests/sched_ext/hotplug.c: sched.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22941
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Acked-by: Andrea Righi <arighi@nvidia.com>

Thanks for the cleanup.

-Andrea

> ---
>  tools/testing/selftests/sched_ext/hotplug.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/sched_ext/hotplug.c b/tools/testing/selftests/sched_ext/hotplug.c
> index 1c9ceb661c43..0cfbb111a2d0 100644
> --- a/tools/testing/selftests/sched_ext/hotplug.c
> +++ b/tools/testing/selftests/sched_ext/hotplug.c
> @@ -6,7 +6,6 @@
>  #include <bpf/bpf.h>
>  #include <sched.h>
>  #include <scx/common.h>
> -#include <sched.h>
>  #include <sys/wait.h>
>  #include <unistd.h>
>  
> -- 
> 2.43.5
>