Commit 622aae87 authored by Herbert Xu's avatar Herbert Xu

crypto: vmx - Move extern declarations into header file

This patch moves the extern algorithm declarations into a header
file so that a number of compiler warnings are silenced.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2481104f
...@@ -7,6 +7,12 @@ struct aes_key { ...@@ -7,6 +7,12 @@ struct aes_key {
int rounds; int rounds;
}; };
extern struct shash_alg p8_ghash_alg;
extern struct crypto_alg p8_aes_alg;
extern struct skcipher_alg p8_aes_cbc_alg;
extern struct skcipher_alg p8_aes_ctr_alg;
extern struct skcipher_alg p8_aes_xts_alg;
int aes_p8_set_encrypt_key(const u8 *userKey, const int bits, int aes_p8_set_encrypt_key(const u8 *userKey, const int bits,
struct aes_key *key); struct aes_key *key);
int aes_p8_set_decrypt_key(const u8 *userKey, const int bits, int aes_p8_set_decrypt_key(const u8 *userKey, const int bits,
......
...@@ -17,11 +17,7 @@ ...@@ -17,11 +17,7 @@
#include <crypto/internal/hash.h> #include <crypto/internal/hash.h>
#include <crypto/internal/skcipher.h> #include <crypto/internal/skcipher.h>
extern struct shash_alg p8_ghash_alg; #include "aesp8-ppc.h"
extern struct crypto_alg p8_aes_alg;
extern struct skcipher_alg p8_aes_cbc_alg;
extern struct skcipher_alg p8_aes_ctr_alg;
extern struct skcipher_alg p8_aes_xts_alg;
static int __init p8_init(void) static int __init p8_init(void)
{ {
......
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