Skip to content

Commit

Permalink
crypto: nx - Add forward declaration for struct crypto_aead
Browse files Browse the repository at this point in the history
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 <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Herbert Xu committed Aug 17, 2015
1 parent a26bcb0 commit 9129c26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/crypto/nx/nx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9129c26

Please sign in to comment.