[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/16] crypto: Rename cipher include files to .c.inc
From: |
Richard Henderson |
Subject: |
[PATCH v2 02/16] crypto: Rename cipher include files to .c.inc |
Date: |
Fri, 28 Aug 2020 10:05:09 -0700 |
QEMU standard procedure for included c files is to use *.c.inc.
E.g. there are a different set of checks that are applied.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
crypto/cipher.c | 6 +++---
crypto/{cipher-builtin.c => cipher-builtin.c.inc} | 0
crypto/{cipher-gcrypt.c => cipher-gcrypt.c.inc} | 0
crypto/{cipher-nettle.c => cipher-nettle.c.inc} | 0
4 files changed, 3 insertions(+), 3 deletions(-)
rename crypto/{cipher-builtin.c => cipher-builtin.c.inc} (100%)
rename crypto/{cipher-gcrypt.c => cipher-gcrypt.c.inc} (100%)
rename crypto/{cipher-nettle.c => cipher-nettle.c.inc} (100%)
diff --git a/crypto/cipher.c b/crypto/cipher.c
index 2722dc7d87..005b5da4de 100644
--- a/crypto/cipher.c
+++ b/crypto/cipher.c
@@ -151,11 +151,11 @@ qcrypto_cipher_munge_des_rfb_key(const uint8_t *key,
#endif /* CONFIG_GCRYPT || CONFIG_NETTLE */
#ifdef CONFIG_GCRYPT
-#include "cipher-gcrypt.c"
+#include "cipher-gcrypt.c.inc"
#elif defined CONFIG_NETTLE
-#include "cipher-nettle.c"
+#include "cipher-nettle.c.inc"
#else
-#include "cipher-builtin.c"
+#include "cipher-builtin.c.inc"
#endif
QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,
diff --git a/crypto/cipher-builtin.c b/crypto/cipher-builtin.c.inc
similarity index 100%
rename from crypto/cipher-builtin.c
rename to crypto/cipher-builtin.c.inc
diff --git a/crypto/cipher-gcrypt.c b/crypto/cipher-gcrypt.c.inc
similarity index 100%
rename from crypto/cipher-gcrypt.c
rename to crypto/cipher-gcrypt.c.inc
diff --git a/crypto/cipher-nettle.c b/crypto/cipher-nettle.c.inc
similarity index 100%
rename from crypto/cipher-nettle.c
rename to crypto/cipher-nettle.c.inc
--
2.25.1
- [PATCH v2 00/16] crypto/cipher: Class hierarchy cleanups, Richard Henderson, 2020/08/28
- [PATCH v2 01/16] crypto: Assume blocksize is a power of 2, Richard Henderson, 2020/08/28
- [PATCH v2 02/16] crypto: Rename cipher include files to .c.inc,
Richard Henderson <=
- [PATCH v2 03/16] crypto: Remove redundant includes, Richard Henderson, 2020/08/28
- [PATCH v2 04/16] crypto/nettle: Fix xts_encrypt arguments, Richard Henderson, 2020/08/28
- [PATCH v2 05/16] crypto: Move QCryptoCipherDriver typedef to crypto/cipher.h, Richard Henderson, 2020/08/28
- [PATCH v2 06/16] crypto: Use the correct const type for driver, Richard Henderson, 2020/08/28
- [PATCH v2 07/16] crypto: Allocate QCryptoCipher with the subclass, Richard Henderson, 2020/08/28
- [PATCH v2 08/16] crypto: Move cipher->driver init to qcrypto_*_cipher_ctx_new, Richard Henderson, 2020/08/28
- [PATCH v2 09/16] crypto: Constify cipher data tables, Richard Henderson, 2020/08/28
- [PATCH v2 10/16] crypto/builtin: Remove odd-sized AES block handling, Richard Henderson, 2020/08/28
- [PATCH v2 11/16] crypto/builtin: Merge qcrypto_cipher_aes_{ecb, xts}_{en, de}crypt, Richard Henderson, 2020/08/28
- [PATCH v2 12/16] crypto/builtin: Move AES_cbc_encrypt into cipher-builtin.inc.c, Richard Henderson, 2020/08/28