Commit 68021dee authored by Herbert Xu's avatar Herbert Xu

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1c27c0ca
...@@ -7,10 +7,15 @@ ...@@ -7,10 +7,15 @@
* Author: Baolin Wang <baolin.wang@linaro.org> * Author: Baolin Wang <baolin.wang@linaro.org>
*/ */
#include <crypto/aead.h>
#include <crypto/akcipher.h>
#include <crypto/engine.h>
#include <crypto/hash.h>
#include <crypto/kpp.h>
#include <crypto/skcipher.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/device.h> #include <linux/device.h>
#include <crypto/engine.h>
#include <uapi/linux/sched/types.h> #include <uapi/linux/sched/types.h>
#include "internal.h" #include "internal.h"
......
...@@ -7,20 +7,17 @@ ...@@ -7,20 +7,17 @@
#ifndef _CRYPTO_ENGINE_H #ifndef _CRYPTO_ENGINE_H
#define _CRYPTO_ENGINE_H #define _CRYPTO_ENGINE_H
#include <linux/crypto.h> #include <crypto/algapi.h>
#include <linux/list.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/spinlock.h> #include <linux/spinlock_types.h>
#include <linux/types.h> #include <linux/types.h>
#include <crypto/algapi.h> struct aead_request;
#include <crypto/aead.h> struct ahash_request;
#include <crypto/akcipher.h> struct akcipher_request;
#include <crypto/hash.h>
#include <crypto/skcipher.h>
#include <crypto/kpp.h>
struct device; struct device;
struct kpp_request;
struct skcipher_request;
#define ENGINE_NAME_LEN 30 #define ENGINE_NAME_LEN 30
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment