Skip to content

Commit

Permalink
crypto: vmx - Move extern declarations into header file
Browse files Browse the repository at this point in the history
This patch moves the extern algorithm declarations into a header
file so that a number of compiler warnings are silenced.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Herbert Xu committed Jan 8, 2021
1 parent 2481104 commit 622aae8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions drivers/crypto/vmx/aesp8-ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ struct aes_key {
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,
struct aes_key *key);
int aes_p8_set_decrypt_key(const u8 *userKey, const int bits,
Expand Down
6 changes: 1 addition & 5 deletions drivers/crypto/vmx/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
#include <crypto/internal/hash.h>
#include <crypto/internal/skcipher.h>

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;
#include "aesp8-ppc.h"

static int __init p8_init(void)
{
Expand Down

0 comments on commit 622aae8

Please sign in to comment.