From: Ralf Baechle Date: Sun, 2 Apr 2006 12:13:19 +0000 (+0100) Subject: [MIPS] Fix CONFIG_LIMITED_DMA build. X-Git-Tag: v2.6.17-rc2~1^2~31 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f13b68e8174657b0253ca7cf263521ed3ac19125;p=linux-2.6-omap-h63xx.git [MIPS] Fix CONFIG_LIMITED_DMA build. This fix a build error for the Momentum Jaguar ATX eval board. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/highmem.c b/arch/mips/mm/highmem.c index 1f7b37b38f5..0c544375b85 100644 --- a/arch/mips/mm/highmem.c +++ b/arch/mips/mm/highmem.c @@ -83,6 +83,7 @@ void __kunmap_atomic(void *kvaddr, enum km_type type) preempt_check_resched(); } +#ifndef CONFIG_LIMITED_DMA /* * This is the same as kmap_atomic() but can map memory that doesn't * have a struct page associated with it. @@ -101,6 +102,7 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type) return (void*) vaddr; } +#endif /* CONFIG_LIMITED_DMA */ struct page *__kmap_atomic_to_page(void *ptr) {