# \[PATCH\] aes\_glue.c: quiet sparse noise about symbol not declared

- From: H Hartley Sweeten \<hidden\>
- Date: 2011-09-09 20:47:43 
- List: linux-crypto
- Page: https://ratatoskr.run/linux-crypto/2011/09/3762416
- Thread: https://ratatoskr.run/linux-crypto/2011/09/3762416/t.md

```text
Include <asm/aes.h> to pick up the declarations for crypto_aes_encrypt_x86
and crypto_aes_decrypt_x86 to quiet the sparse noise:

warning: symbol 'crypto_aes_encrypt_x86' was not declared. Should it be static?
warning: symbol 'crypto_aes_decrypt_x86' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
"David S. Miller" [ref]
Thomas Gleixner [ref]
Ingo Molnar [ref]
"H. Peter Anvin" [ref]

---

diff --git a/arch/x86/crypto/aes_glue.c b/arch/x86/crypto/aes_glue.c
index bdce3ee..8efcf42 100644
--- a/arch/x86/crypto/aes_glue.c
+++ b/arch/x86/crypto/aes_glue.c
@@ -5,6 +5,7 @@
 
 #include <linux/module.h>
 #include <crypto/aes.h>
+#include <asm/aes.h>
 
 asmlinkage void aes_enc_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
 asmlinkage void aes_dec_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
```
