linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Another CMA build warning
@ 2012-06-05 22:07 Russell King - ARM Linux
  2012-06-06  9:27 ` [PATCH] ARM: mm: fix type of the arm_dma_limit global variable Marek Szyprowski
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2012-06-05 22:07 UTC (permalink / raw)
  To: linux-arm-kernel

Here's another build warning, found by the latest OMAP randconfig build
in my build system.

arch/arm/mm/init.c:380: warning: comparison of distinct pointer types lacks a cast

caused by commit c79095092 (ARM: integrate CMA with DMA-mapping subsystem)
which adds:

+       dma_contiguous_reserve(min(arm_dma_limit, arm_lowmem_limit));


arch/arm/mm/mmu.c:phys_addr_t arm_lowmem_limit __initdata = 0;
arch/arm/mm/init.c:u32 arm_dma_limit;

Those are two potentially dis-similar types, so min() should not be used.
Use min_t() instead, or change arm_dma_limit to be phys_addr_t too, which
might make more sense.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-06 10:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 22:07 Another CMA build warning Russell King - ARM Linux
2012-06-06  9:27 ` [PATCH] ARM: mm: fix type of the arm_dma_limit global variable Marek Szyprowski
2012-06-06  9:29   ` Russell King - ARM Linux
2012-06-06 10:35     ` [PATCHv2] " Marek Szyprowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).