[PATCH] 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? Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Herbert Xu herb...@gondor.apana.org.au David S. Miller da...@davemloft.net Thomas Gleixner t...@linutronix.de Ingo Molnar mi...@redhat.com H. Peter Anvin h...@zytor.com --- 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); -- To unsubscribe from this list: send the line unsubscribe linux-crypto in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
drivers/crypto/mv_cesa.c: use resource_size()
Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Sebastian Andrzej Siewior sebast...@breakpoint.cc --- diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index b21ef63..b8770e9 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c @@ -495,7 +495,7 @@ static int mv_probe(struct platform_device *pdev) spin_lock_init(cp-lock); crypto_init_queue(cp-queue, 50); - cp-reg = ioremap(res-start, res-end - res-start + 1); + cp-reg = ioremap(res-start, resource_size(res)); if (!cp-reg) { ret = -ENOMEM; goto err; @@ -506,7 +506,7 @@ static int mv_probe(struct platform_device *pdev) ret = -ENXIO; goto err_unmap_reg; } - cp-sram_size = res-end - res-start + 1; + cp-sram_size = resource_size(res); cp-max_req_size = cp-sram_size - SRAM_CFG_SPACE; cp-sram = ioremap(res-start, cp-sram_size); if (!cp-sram) { -- To unsubscribe from this list: send the line unsubscribe linux-crypto in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html