From 5d5df3a5d734e94e8850a7b4870884f8142fc87f Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Thu, 11 Nov 2021 12:03:56 +0800 Subject: [PATCH] chore: clean "bits/xx.h" includes Signed-off-by: Caoruihong Change-Id: I3dcf576ceba66b0fa447573e997d064026eb8785 --- apps/shell/include/shell_pri.h | 4 ---- apps/shell/include/sherr.h | 3 --- testsuites/unittest/common/include/osTest.h | 1 - testsuites/unittest/process/process/it_test_process.h | 2 +- testsuites/unittest/process/pthread/it_pthread_test.h | 2 +- .../unittest/process/pthread/smoke/pthread_test_011.cpp | 2 +- 6 files changed, 3 insertions(+), 11 deletions(-) diff --git a/apps/shell/include/shell_pri.h b/apps/shell/include/shell_pri.h index 8e5ab6f6..e1a47f1d 100644 --- a/apps/shell/include/shell_pri.h +++ b/apps/shell/include/shell_pri.h @@ -32,10 +32,6 @@ #ifndef _SHELL_PRI_H #define _SHELL_PRI_H -#include "sys/types.h" -#include "bits/alltypes.h" -#include "shcmd.h" - #ifdef __cplusplus #if __cplusplus extern "C" { diff --git a/apps/shell/include/sherr.h b/apps/shell/include/sherr.h index a560a740..9645a97b 100644 --- a/apps/shell/include/sherr.h +++ b/apps/shell/include/sherr.h @@ -32,9 +32,6 @@ #ifndef _SHERR_H #define _SHERR_H -#include "sys/types.h" -#include "bits/alltypes.h" - #ifdef __cplusplus #if __cplusplus extern "C" { diff --git a/testsuites/unittest/common/include/osTest.h b/testsuites/unittest/common/include/osTest.h index c902d829..9e3d8b59 100644 --- a/testsuites/unittest/common/include/osTest.h +++ b/testsuites/unittest/common/include/osTest.h @@ -47,7 +47,6 @@ #include #include #include -#include #include #include #include diff --git a/testsuites/unittest/process/process/it_test_process.h b/testsuites/unittest/process/process/it_test_process.h index 67de1df2..19803d4a 100644 --- a/testsuites/unittest/process/process/it_test_process.h +++ b/testsuites/unittest/process/process/it_test_process.h @@ -36,7 +36,7 @@ #include "sys/wait.h" #define WAIT_PARENT_FIRST_TO_RUN(tick) usleep((tick)*10 * 1000) // 10, 1000, wait time. -#include "bits/syscall.h" +#include "sys/syscall.h" static inline int Syscall(int nbr, int parm1, int parm2, int parm3, int parm4) { diff --git a/testsuites/unittest/process/pthread/it_pthread_test.h b/testsuites/unittest/process/pthread/it_pthread_test.h index 5a285732..5b148e01 100644 --- a/testsuites/unittest/process/pthread/it_pthread_test.h +++ b/testsuites/unittest/process/pthread/it_pthread_test.h @@ -38,7 +38,7 @@ #define SLEEP_AND_YIELD(tick) usleep((tick)*10 * 1000) -#include "bits/syscall.h" +#include "sys/syscall.h" static inline int Syscall(int nbr, int parm1, int parm2, int parm3, int parm4) { diff --git a/testsuites/unittest/process/pthread/smoke/pthread_test_011.cpp b/testsuites/unittest/process/pthread/smoke/pthread_test_011.cpp index c8269931..ac1ffd50 100644 --- a/testsuites/unittest/process/pthread/smoke/pthread_test_011.cpp +++ b/testsuites/unittest/process/pthread/smoke/pthread_test_011.cpp @@ -29,7 +29,7 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "it_pthread_test.h" -#include "bits/syscall.h" +#include "sys/syscall.h" void child1(void) {