From 2fc677cfe0fcd71dd0b9201ac1b13f967b14440b Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Mon, 17 Aug 2015 18:04:17 +0800 Subject: [PATCH] crypto: nx - Add forward declaration for struct crypto_aead The file nx.h has function prototypes that use struct crypto_aead. However, as crypto/aead.h is not included we don't have a definition for it. This patch adds a forward declaration to fix this. Reported-by: kbuild test robot Signed-off-by: Herbert Xu --- drivers/crypto/nx/nx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/nx/nx.h b/drivers/crypto/nx/nx.h index 591632d9c6540..9347878d4f30c 100644 --- a/drivers/crypto/nx/nx.h +++ b/drivers/crypto/nx/nx.h @@ -149,6 +149,8 @@ struct nx_crypto_ctx { } priv; }; +struct crypto_aead; + /* prototypes */ int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm); int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm); -- 2.39.5