[PATCH] tools: testing: Remove duplicate include of sched.h

Subsystems: kernel selftest framework, the rest

STALE1986d

2 messages, 2 authors, 2021-03-23 · open the first message on its own page

[PATCH] tools: testing: Remove duplicate include of sched.h

From: Wan Jiabing <hidden>
Date: 2021-03-23 03:35:47

sched.h has been included at line 33.
So we remove the duplicate one at line 36.

Signed-off-by: Wan Jiabing <redacted>
---
 tools/testing/selftests/powerpc/mm/tlbie_test.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/powerpc/mm/tlbie_test.c b/tools/testing/selftests/powerpc/mm/tlbie_test.c
index f85a0938ab25..48344a74b212 100644
--- a/tools/testing/selftests/powerpc/mm/tlbie_test.c
+++ b/tools/testing/selftests/powerpc/mm/tlbie_test.c
@@ -33,7 +33,6 @@
 #include <sched.h>
 #include <time.h>
 #include <stdarg.h>
-#include <sched.h>
 #include <pthread.h>
 #include <signal.h>
 #include <sys/prctl.h>
-- 
2.25.1

Re: [PATCH] tools: testing: Remove duplicate include of sched.h

From: Christophe Leroy <hidden>
Date: 2021-03-23 05:45:32


Le 23/03/2021 à 04:34, Wan Jiabing a écrit :
sched.h has been included at line 33.
So we remove the duplicate one at line 36.
Can you please send a single patch for all files in tools/testing/selftests/powerpc/

Thanks
Christophe
quoted hunk
Signed-off-by: Wan Jiabing <redacted>
---
  tools/testing/selftests/powerpc/mm/tlbie_test.c | 1 -
  1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/powerpc/mm/tlbie_test.c b/tools/testing/selftests/powerpc/mm/tlbie_test.c
index f85a0938ab25..48344a74b212 100644
--- a/tools/testing/selftests/powerpc/mm/tlbie_test.c
+++ b/tools/testing/selftests/powerpc/mm/tlbie_test.c
@@ -33,7 +33,6 @@
  #include <sched.h>
  #include <time.h>
  #include <stdarg.h>
-#include <sched.h>
  #include <pthread.h>
  #include <signal.h>
  #include <sys/prctl.h>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help