summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-08-13 09:54:36 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-08-18 12:01:10 +0300
commit68021dee251e72d87ebbf052acf69b3217c11383 (patch)
tree40177bb1b75a34a0ec7a07139c0eb9607654c6f5 /include/crypto
parent1c27c0ca220b42fb8b727d68b58693b77cbd095d (diff)
downloadlinux-68021dee251e72d87ebbf052acf69b3217c11383.tar.xz
crypto: engine - Move crypto inclusions out of header file
The engine file does not need the actual crypto type definitions so move those header inclusions to where they are actually used. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/engine.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/crypto/engine.h b/include/crypto/engine.h
index 1b02f69e0a79..643639c3227c 100644
--- a/include/crypto/engine.h
+++ b/include/crypto/engine.h
@@ -7,20 +7,17 @@
#ifndef _CRYPTO_ENGINE_H
#define _CRYPTO_ENGINE_H
-#include <linux/crypto.h>
-#include <linux/list.h>
+#include <crypto/algapi.h>
#include <linux/kthread.h>
-#include <linux/spinlock.h>
+#include <linux/spinlock_types.h>
#include <linux/types.h>
-#include <crypto/algapi.h>
-#include <crypto/aead.h>
-#include <crypto/akcipher.h>
-#include <crypto/hash.h>
-#include <crypto/skcipher.h>
-#include <crypto/kpp.h>
-
+struct aead_request;
+struct ahash_request;
+struct akcipher_request;
struct device;
+struct kpp_request;
+struct skcipher_request;
#define ENGINE_NAME_LEN 30
/*