[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20131210212523.GE4360@n2100.arm.linux.org.uk>
Date: Tue, 10 Dec 2013 21:25:23 +0000
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Santosh Shilimkar <santosh.shilimkar@...com>
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Grygorii Strashko <grygorii.strashko@...com>,
Rob Herring <rob.herring@...xeda.com>,
Yinghai Lu <yinghai@...nel.org>, Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH 1/2] mm/ARM: dma: fix conflicting types for
'arm_dma_zone_size'
On Tue, Dec 10, 2013 at 02:29:57PM -0500, Santosh Shilimkar wrote:
> diff --git a/arch/arm/include/asm/dma.h b/arch/arm/include/asm/dma.h
> index 58b8c6a..1439b80 100644
> --- a/arch/arm/include/asm/dma.h
> +++ b/arch/arm/include/asm/dma.h
> @@ -8,7 +8,7 @@
> #define MAX_DMA_ADDRESS 0xffffffffUL
> #else
> #define MAX_DMA_ADDRESS ({ \
> - extern unsigned long arm_dma_zone_size; \
> + extern phys_addr_t arm_dma_zone_size; \
> arm_dma_zone_size ? \
> (PAGE_OFFSET + arm_dma_zone_size) : 0xffffffffUL; })
This is wrong. Take a moment to look at it more closely. What does
"PAGE_OFFSET" tell you about what its returning?
What happens if arm_dma_zone_size is greater than 1GB when PAGE_OFFSET
is at the default setting of 3GB?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists