diff mbox series

crypto: sl3516: depends on HAS_IOMEM

Message ID 20210621185926.4181785-1-clabbe@baylibre.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: sl3516: depends on HAS_IOMEM | expand

Commit Message

Corentin LABBE June 21, 2021, 6:59 p.m. UTC
The sl3516 driver need to depend on HAS_IOMEM.
This fixes a build error:
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/crypto/gemini/sl3516-ce.ko] undefined!

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 drivers/crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Herbert Xu June 24, 2021, 7:37 a.m. UTC | #1
On Mon, Jun 21, 2021 at 06:59:26PM +0000, Corentin Labbe wrote:
> The sl3516 driver need to depend on HAS_IOMEM.
> This fixes a build error:
> ERROR: modpost: "devm_platform_ioremap_resource" [drivers/crypto/gemini/sl3516-ce.ko] undefined!
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---
>  drivers/crypto/Kconfig | 1 +
>  1 file changed, 1 insertion(+)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 99b090790178..4f3b7da24495 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -268,6 +268,7 @@  config CRYPTO_DEV_NIAGARA2
 
 config CRYPTO_DEV_SL3516
 	tristate "Stormlink SL3516 crypto offloader"
+	depends on HAS_IOMEM
 	select CRYPTO_SKCIPHER
 	select CRYPTO_ENGINE
 	select CRYPTO_ECB