Skip to contentSkip to conversation

ARM: mm: Remove HugeTLB warning from dma-mapping.c

PATCH RESEND Superseded Steve Capper 1 participant 1 message Oct 10, 2013 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ARM: mm: Remove HugeTLB warning from dma-mapping.c

The coherant DMA allocator code contained a compile time warning when HugeTLB support was enabled. It stated that huge pages were not supported by the DMA allocator.

Apart from memory pressure, HugeTLB should not affect (or be affected by) the higher order pages operated on by the DMA allocator. Also, the user space mappings returned by arm_dma_mmap are done via remap_pfn_range, so the Transparent Huge Page daemon will leave them alone too.

This patch removes the huge page warning from dma-mapping.c.

---
Hi, I'm resending this patch as it appears to have slipped through the cracks. Without this patch we will get spurious compiler warnings when building kernels with huge page support.

Cheers,

Signature · 4 lines
Steve
---
 arch/arm/mm/dma-mapping.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/mm/dma-mapping.c +0 -3
index 7f9b179..9486048 100644
@@ -249,9 +249,6 @@ static void __dma_free_buffer(struct page *page, size_t size)
 }
 
 #ifdef CONFIG_MMU
-#ifdef CONFIG_HUGETLB_PAGE
-#warning ARM Coherent DMA allocator does not (yet) support huge TLB
-#endif
 
 static void *__alloc_from_contiguous(struct device *dev, size_t size,
 				     pgprot_t prot, struct page **ret_page,
Signature · 1 line
1.8.1.4