summaryrefslogtreecommitdiff
path: root/include/crypto/engine.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-12-10 16:30:09 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-12-17 16:59:48 +1100
commit244d22ffd656bc8e5c49a2cd2fdfeb0e52a9730f (patch)
tree7b9ced0ecb56bd6b52eaae1a7e05f86f2a59e9c2 /include/crypto/engine.h
parent0b62b664d52c670eb5e0fa7dfd6a85dbc518619c (diff)
crypto: api - Replace kernel.h with the necessary inclusions
When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/engine.h')
-rw-r--r--include/crypto/engine.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/crypto/engine.h b/include/crypto/engine.h
index fd4f2fa23f51..ae133e98d813 100644
--- a/include/crypto/engine.h
+++ b/include/crypto/engine.h
@@ -9,8 +9,10 @@
#include <linux/crypto.h>
#include <linux/list.h>
-#include <linux/kernel.h>
#include <linux/kthread.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+
#include <crypto/algapi.h>
#include <crypto/aead.h>
#include <crypto/akcipher.h>
@@ -18,6 +20,8 @@
#include <crypto/skcipher.h>
#include <crypto/kpp.h>
+struct device;
+
#define ENGINE_NAME_LEN 30
/*
* struct crypto_engine - crypto hardware engine