drivers/net/irda/Kconfig: Let SH_IRDA depend on HAS_IOMEM
Subsystems (2)
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
@@ -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
From: Chen Gang <[email protected]>
Date: Thu, 02 Oct 2014 22:32:56 +0800
Quoted 15 lines
SH_IRDAneedsHAS_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
Signed-off-by Chen Gang <[email protected]>
Applied. �τθΊ{.nΗ+·�+%Λ�±ιέΆ�w�Ί{.nΗ+·�{±ώG«ι�{ayΊΚΪλ,j’f£’·hοκ�κηz_θ�(ιέ’j"ϊΆm§��Ύ«ώG«ι�’Έ?¨θΪ&£ψ§~αΆiOζ¬z·vΨ^Άm§��Γ�Άμ�’Έ?I�