libwd/0155-drv-hpre-remove-repeatedly-included-header-file.patch
Yang Shen ec2f993b84 libwd: backport for uadk from 2.3.31 to 2.3.36
Update some patch for uadk from mainline.
To get more information, please visit the homepage:
https://github.comp/Linaro/uadk

Signed-off-by: Yang Shen <shenyang39@huawei.com>
2022-07-28 15:32:23 +08:00

57 lines
1.4 KiB
Diff

From fbdf545556c1fe85e5c35001af675ea0cb8ab968 Mon Sep 17 00:00:00 2001
From: Weili Qian <qianweili@huawei.com>
Date: Sat, 23 Jul 2022 10:48:56 +0800
Subject: [PATCH 170/183] drv/hpre: remove repeatedly included header file
Some header files have included in hisi_qm_udrv.h, remove them from
hisi_hpre.c.
Signed-off-by: Weili Qian <qianweili@huawei.com>
---
drv/hisi_hpre.c | 10 ++--------
include/drv/wd_rsa_drv.h | 2 ++
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/drv/hisi_hpre.c b/drv/hisi_hpre.c
index 4c6e532..8454eff 100644
--- a/drv/hisi_hpre.c
+++ b/drv/hisi_hpre.c
@@ -2,19 +2,13 @@
/* Copyright 2020-2021 Huawei Technologies Co.,Ltd. All rights reserved. */
#include <stdlib.h>
-#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 <unistd.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
+#include <sys/mman.h>
#include <sys/types.h>
#include "hisi_qm_udrv.h"
-#include "wd.h"
#include "../include/drv/wd_rsa_drv.h"
#include "../include/drv/wd_dh_drv.h"
#include "../include/drv/wd_ecc_drv.h"
diff --git a/include/drv/wd_rsa_drv.h b/include/drv/wd_rsa_drv.h
index 28c3337..83f1af2 100644
--- a/include/drv/wd_rsa_drv.h
+++ b/include/drv/wd_rsa_drv.h
@@ -3,6 +3,8 @@
#ifndef __WD_RSA_DRV_H
#define __WD_RSA_DRV_H
+#include <asm/types.h>
+
#include "../wd_rsa.h"
#ifdef __cplusplus
--
2.27.0