summary refs log tree commit diff
path: root/include/crypto/aead.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/aead.h
parent0b62b664d52c670eb5e0fa7dfd6a85dbc518619c (diff)
downloadlinux-244d22ffd656bc8e5c49a2cd2fdfeb0e52a9730f.tar.gz
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/aead.h')
-rw-r--r--include/crypto/aead.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/crypto/aead.h b/include/crypto/aead.h
index 5af914c1ab8e..14db3bee0519 100644
--- a/include/crypto/aead.h
+++ b/include/crypto/aead.h
@@ -8,9 +8,10 @@
 #ifndef _CRYPTO_AEAD_H
 #define _CRYPTO_AEAD_H
 
+#include <linux/container_of.h>
 #include <linux/crypto.h>
-#include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/types.h>
 
 /**
  * DOC: Authenticated Encryption With Associated Data (AEAD) Cipher API
@@ -73,6 +74,7 @@
  */
 
 struct crypto_aead;
+struct scatterlist;
 
 /**
  *	struct aead_request - AEAD request