DORMANTno replies

[PATCH] ARM: highbank: make dma_zone_size depend on ARM_LPAE

From: Rob Herring <hidden>
Date: 2013-08-14 23:22:32
Subsystem: arm port, arm/calxeda highbank architecture, the rest · Maintainers: Russell King, Andre Przywara, Linus Torvalds

From: Rob Herring <redacted>

DMA zone on highbank should only be enabled for LPAE, but other platforms
can cause DMA zone to be selected resulting in this warning:

arch/arm/mach-highbank/highbank.c:180:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]

Fix this by making dma_zone_size setting also depend on CONFIG_ARM_LPAE.

Reported-by: Olof Johansson <redacted>
Signed-off-by: Rob Herring <redacted>
---
 arch/arm/mach-highbank/highbank.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index b5d0375..8dc5f98 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -178,7 +178,7 @@ static const char *highbank_match[] __initconst = {
 };
 
 DT_MACHINE_START(HIGHBANK, "Highbank")
-#ifdef CONFIG_ZONE_DMA
+#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
 	.dma_zone_size	= (4ULL * SZ_1G),
 #endif
 	.smp		= smp_ops(highbank_smp_ops),
-- 
1.8.1.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help