mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: CRYPTO_DEV_ATMEL_AES should depend on HAS_DMA
@ 2016-01-15 13:48 Geert Uytterhoeven
  2016-01-18 15:25 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2016-01-15 13:48 UTC (permalink / raw)
  To: Cyrille Pitchen, Herbert Xu, David S. Miller
  Cc: linux-crypto, linux-kernel, Geert Uytterhoeven

If NO_DMA=y:

    ERROR: "dma_unmap_sg" [drivers/crypto/atmel-aes.ko] undefined!
    ERROR: "dma_map_sg" [drivers/crypto/atmel-aes.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 3dd69df9c970fa0e..07d494276aad0419 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -381,6 +381,7 @@ config CRYPTO_DEV_BFIN_CRC
 
 config CRYPTO_DEV_ATMEL_AES
 	tristate "Support for Atmel AES hw accelerator"
+	depends on HAS_DMA
 	depends on AT_XDMAC || AT_HDMAC || COMPILE_TEST
 	select CRYPTO_AES
 	select CRYPTO_AEAD
-- 
1.9.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: CRYPTO_DEV_ATMEL_AES should depend on HAS_DMA
  2016-01-15 13:48 [PATCH] crypto: CRYPTO_DEV_ATMEL_AES should depend on HAS_DMA Geert Uytterhoeven
@ 2016-01-18 15:25 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2016-01-18 15:25 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Cyrille Pitchen, David S. Miller, linux-crypto, linux-kernel

On Fri, Jan 15, 2016 at 02:48:06PM +0100, Geert Uytterhoeven wrote:
> If NO_DMA=y:
> 
>     ERROR: "dma_unmap_sg" [drivers/crypto/atmel-aes.ko] undefined!
>     ERROR: "dma_map_sg" [drivers/crypto/atmel-aes.ko] undefined!
> 
> Add a dependency on HAS_DMA to fix this.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Patch applied.  Thanks!
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-18 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-15 13:48 [PATCH] crypto: CRYPTO_DEV_ATMEL_AES should depend on HAS_DMA Geert Uytterhoeven
2016-01-18 15:25 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®