Skip to contentSkip to conversation

drivers/net/irda/Kconfig: Let SH_IRDA depend on HAS_IOMEM

PATCH Applied Chen Gang 2 participants 2 messages Oct 2, 2014 – Oct 3, 2014

Subsystems (2)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 drivers/net/irda/Kconfig: Let SH_IRDA depend on HAS_IOMEM

SH_IRDA needs HAS_IOMEM, so depend on it. The related error(with allmodconfig under um):

CC [M] drivers/net/irda/sh_irda.o
drivers/net/irda/sh_irda.c: In function ‘sh_irda_probe’:
drivers/net/irda/sh_irda.c:776:2: error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration]

    self->membase = ioremap_nocache(res->start, resource_size(res));
    ^
  drivers/net/irda/sh_irda.c:776:16: warning: assignment makes pointer from integer without a cast [enabled by default]
    self->membase = ioremap_nocache(res->start, resource_size(res));
                  ^
  drivers/net/irda/sh_irda.c:821:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
    iounmap(self->membase);
    ^
---
 drivers/net/irda/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/irda/Kconfig +1 -1
index 8d101d6..a2c227b 100644
@@ -397,7 +397,7 @@ config MCS_FIR
 config SH_IRDA
 	tristate "SuperH IrDA driver"
 	depends on IRDA
-	depends on ARCH_SHMOBILE || COMPILE_TEST
+	depends on (ARCH_SHMOBILE || COMPILE_TEST) && HAS_IOMEM
 	help
 	  Say Y here if your want to enable SuperH IrDA devices.
 
Signature · 1 line
1.9.3
maintainer Applied
#1 lore raw

From: Chen Gang <[email protected]>
Date: Thu, 02 Oct 2014 22:32:56 +0800

Quoted 15 lines

SH_IRDA needs HAS_IOMEM, so depend on it. The related error(with allmodconfig under um):

CC [M] drivers/net/irda/sh_irda.o
drivers/net/irda/sh_irda.c: In function ‘sh_irda_probe’:
drivers/net/irda/sh_irda.c:776:2: error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration]

    self->membase = ioremap_nocache(res->start, resource_size(res));
    ^
  drivers/net/irda/sh_irda.c:776:16: warning: assignment makes pointer from integer without a cast [enabled by default]
    self->membase = ioremap_nocache(res->start, resource_size(res));
                  ^
  drivers/net/irda/sh_irda.c:821:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
    iounmap(self->membase);
    ^
Quoted 1 line

Applied. �τθΊ{.nΗ+‰·Ÿ�‰­†+%ŠΛ�±ιέΆ�Šw�Ί{.nΗ+‰·�Š{±ώG«ι�Š{ayΊΚ‡Ϊ™λ,j­’f£’·hšοκ�‘κηz_θ�(­ιšŽŠέ’j"ϊΆm§��Ύ«ώG«ι�’Έ?™¨θ­Ϊ&£ψ§~αΆiO•ζ¬z·švΨ^Άm§��Γ �Άμ�’Έ?–I�