[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/17] crypto: Remove redundant includes
From: |
Richard Henderson |
Subject: |
[PATCH 05/17] crypto: Remove redundant includes |
Date: |
Wed, 12 Aug 2020 20:25:25 -0700 |
Both qemu/osdep.h and cipherpriv.h have already been
included by the parent cipher.c.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
crypto/cipher-builtin.inc.c | 2 --
crypto/cipher-gcrypt.inc.c | 2 --
crypto/cipher-nettle.inc.c | 2 --
3 files changed, 6 deletions(-)
diff --git a/crypto/cipher-builtin.inc.c b/crypto/cipher-builtin.inc.c
index 6eafd39da0..56d45b0227 100644
--- a/crypto/cipher-builtin.inc.c
+++ b/crypto/cipher-builtin.inc.c
@@ -18,11 +18,9 @@
*
*/
-#include "qemu/osdep.h"
#include "crypto/aes.h"
#include "crypto/desrfb.h"
#include "crypto/xts.h"
-#include "cipherpriv.h"
typedef struct QCryptoCipherBuiltinAESContext QCryptoCipherBuiltinAESContext;
struct QCryptoCipherBuiltinAESContext {
diff --git a/crypto/cipher-gcrypt.inc.c b/crypto/cipher-gcrypt.inc.c
index 81e4745bff..a62839914b 100644
--- a/crypto/cipher-gcrypt.inc.c
+++ b/crypto/cipher-gcrypt.inc.c
@@ -18,11 +18,9 @@
*
*/
-#include "qemu/osdep.h"
#ifdef CONFIG_QEMU_PRIVATE_XTS
#include "crypto/xts.h"
#endif
-#include "cipherpriv.h"
#include <gcrypt.h>
diff --git a/crypto/cipher-nettle.inc.c b/crypto/cipher-nettle.inc.c
index 0677fdfd33..256931a823 100644
--- a/crypto/cipher-nettle.inc.c
+++ b/crypto/cipher-nettle.inc.c
@@ -18,11 +18,9 @@
*
*/
-#include "qemu/osdep.h"
#ifdef CONFIG_QEMU_PRIVATE_XTS
#include "crypto/xts.h"
#endif
-#include "cipherpriv.h"
#include <nettle/nettle-types.h>
#include <nettle/aes.h>
--
2.25.1
- Re: [PATCH 01/17] crypto: Move QCryptoCipher typedef to qemu/typedefs.h, (continued)
[PATCH 02/17] crypto: Move QCryptoCipherDriver typedef to qemu/typedefs.h, Richard Henderson, 2020/08/12
[PATCH 03/17] crypto: Assume blocksize is a power of 2, Richard Henderson, 2020/08/12
[PATCH 04/17] crypto: Rename cipher include files to .inc.c, Richard Henderson, 2020/08/12
[PATCH 05/17] crypto: Remove redundant includes,
Richard Henderson <=
[PATCH 06/17] crypto/nettle: Fix xts_encrypt arguments, Richard Henderson, 2020/08/12
[PATCH 07/17] crypto: Use the correct const type for driver, Richard Henderson, 2020/08/12
[PATCH 08/17] crypto: Allocate QCryptoCipher with the subclass, Richard Henderson, 2020/08/12
[PATCH 09/17] crypto: Move cipher->driver init to qcrypto_*_cipher_ctx_new, Richard Henderson, 2020/08/12