Skip to contentSkip to conversation

aes_glue.c: quiet sparse noise about symbol not declared

PATCH New H Hartley Sweeten 1 participant 1 message Sep 9, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aes_glue.c: quiet sparse noise about symbol not declared

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?

"David S. Miller" <[email protected]>
Thomas Gleixner <[email protected]>
Ingo Molnar <[email protected]>
"H. Peter Anvin" <[email protected]>

---

arch/x86/crypto/aes_glue.c +1 -0
index bdce3ee..8efcf42 100644
@@ -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);