From: Wenkai Lin linwenkai6@hisilicon.com
Remove redundant head files.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com Signed-off-by: Qi Tao taoqi10@huawei.com --- v1/drv/dummy_drv.c | 1 - v1/drv/dummy_drv.h | 1 - v1/drv/hisi_hpre_udrv.c | 5 ----- v1/drv/hisi_qm_udrv.c | 4 ---- v1/drv/hisi_qm_udrv.h | 1 - v1/drv/hisi_sec_udrv.c | 5 ----- v1/drv/hisi_sec_udrv.h | 1 - v1/drv/hisi_zip_udrv.c | 1 - v1/internal/dummy_hw_usr_if.h | 1 + v1/uacce.h | 1 - v1/wd.h | 1 + v1/wd_adapter.c | 1 - 12 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/v1/drv/dummy_drv.c b/v1/drv/dummy_drv.c index b1c1968..ca0aa43 100644 --- a/v1/drv/dummy_drv.c +++ b/v1/drv/dummy_drv.c @@ -17,7 +17,6 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <assert.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <linux/types.h> diff --git a/v1/drv/dummy_drv.h b/v1/drv/dummy_drv.h index 392a47e..0825efd 100644 --- a/v1/drv/dummy_drv.h +++ b/v1/drv/dummy_drv.h @@ -17,7 +17,6 @@ #ifndef __DUMMY_DRV_H__ #define __DUMMY_DRV_H__
-#include "v1/internal/wd_dummy_usr_if.h" #include "v1/internal/dummy_hw_usr_if.h" #include "v1/wd.h"
diff --git a/v1/drv/hisi_hpre_udrv.c b/v1/drv/hisi_hpre_udrv.c index eaee4b1..0b2bdd5 100644 --- a/v1/drv/hisi_hpre_udrv.c +++ b/v1/drv/hisi_hpre_udrv.c @@ -18,16 +18,11 @@ #include <unistd.h> #include <stdio.h> #include <sys/mman.h> -#include <assert.h> #include <string.h> #include <stdint.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/epoll.h> #include <sys/eventfd.h> #include <sys/types.h> -#include "config.h" #include "v1/wd_util.h" #include "hisi_hpre_udrv.h"
diff --git a/v1/drv/hisi_qm_udrv.c b/v1/drv/hisi_qm_udrv.c index 03a875b..ea4b199 100644 --- a/v1/drv/hisi_qm_udrv.c +++ b/v1/drv/hisi_qm_udrv.c @@ -18,17 +18,13 @@ #include <unistd.h> #include <stdio.h> #include <sys/mman.h> -#include <assert.h> #include <string.h> #include <stdint.h> -#include <fcntl.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/epoll.h> #include <sys/eventfd.h> #include <sys/types.h>
-#include "config.h" #include "v1/drv/hisi_zip_udrv.h" #include "v1/drv/hisi_hpre_udrv.h" #include "v1/drv/hisi_sec_udrv.h" diff --git a/v1/drv/hisi_qm_udrv.h b/v1/drv/hisi_qm_udrv.h index cc1aa33..542d20d 100644 --- a/v1/drv/hisi_qm_udrv.h +++ b/v1/drv/hisi_qm_udrv.h @@ -19,7 +19,6 @@
#include <asm/byteorder.h> #include <linux/types.h> -#include "config.h" #include "v1/wd.h" #include "v1/wd_ecc.h" #include "v1/wd_rsa.h" diff --git a/v1/drv/hisi_sec_udrv.c b/v1/drv/hisi_sec_udrv.c index d4e090a..36b93e6 100644 --- a/v1/drv/hisi_sec_udrv.c +++ b/v1/drv/hisi_sec_udrv.c @@ -18,17 +18,12 @@ #include <unistd.h> #include <stdio.h> #include <sys/mman.h> -#include <assert.h> #include <string.h> #include <stdint.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/epoll.h> #include <sys/eventfd.h> #include <sys/types.h>
-#include "config.h" #include "hisi_sec_udrv.h"
#define SEC_HW_TASK_DONE 1 diff --git a/v1/drv/hisi_sec_udrv.h b/v1/drv/hisi_sec_udrv.h index 9db4af8..c266e96 100644 --- a/v1/drv/hisi_sec_udrv.h +++ b/v1/drv/hisi_sec_udrv.h @@ -18,7 +18,6 @@ #define __HISI_SEC_DRV_H__
#include <linux/types.h> -#include "config.h" #include "v1/wd.h" #include "v1/wd_util.h" #include "v1/wd_cipher.h" diff --git a/v1/drv/hisi_zip_udrv.c b/v1/drv/hisi_zip_udrv.c index dfd1fb3..9c9694b 100644 --- a/v1/drv/hisi_zip_udrv.c +++ b/v1/drv/hisi_zip_udrv.c @@ -27,7 +27,6 @@ #include <sys/epoll.h> #include <sys/eventfd.h> #include <sys/types.h> -#include "config.h" #include "v1/wd_util.h" #include "v1/wd_comp.h" #include "v1/wd_cipher.h" diff --git a/v1/internal/dummy_hw_usr_if.h b/v1/internal/dummy_hw_usr_if.h index 3a9df48..7fb81a1 100644 --- a/v1/internal/dummy_hw_usr_if.h +++ b/v1/internal/dummy_hw_usr_if.h @@ -23,6 +23,7 @@ #define __DUMMY_HW_USR_IF_H
#include <linux/types.h> +#include "v1/internal/wd_dummy_usr_if.h"
#define DUMMY_WD "dummy_wd"
diff --git a/v1/uacce.h b/v1/uacce.h index d45062e..eef932c 100644 --- a/v1/uacce.h +++ b/v1/uacce.h @@ -17,7 +17,6 @@ #ifndef _UAPI_WD_UACCE_H #define _UAPI_WD_UACCE_H
-#include <linux/types.h> #include <linux/ioctl.h>
#define WD_UACCE_CLASS_NAME "uacce" diff --git a/v1/wd.h b/v1/wd.h index 176f2ef..0a32182 100644 --- a/v1/wd.h +++ b/v1/wd.h @@ -22,6 +22,7 @@ #include <stdio.h> #include <string.h> #include <sys/types.h> +#include <asm/types.h> #include <stdbool.h> #include <sys/stat.h> #include <fcntl.h> diff --git a/v1/wd_adapter.c b/v1/wd_adapter.c index b9b841d..b053264 100644 --- a/v1/wd_adapter.c +++ b/v1/wd_adapter.c @@ -18,7 +18,6 @@ #include <string.h> #include <dirent.h>
-#include "config.h" #include "v1/wd_util.h" #include "v1/drv/hisi_qm_udrv.h" #include "v1/drv/hisi_rng_udrv.h"