Commit f13b68e8 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Fix CONFIG_LIMITED_DMA build.

This fix a build error for the Momentum Jaguar ATX eval board.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 41d4f0e6
...@@ -83,6 +83,7 @@ void __kunmap_atomic(void *kvaddr, enum km_type type) ...@@ -83,6 +83,7 @@ void __kunmap_atomic(void *kvaddr, enum km_type type)
preempt_check_resched(); preempt_check_resched();
} }
#ifndef CONFIG_LIMITED_DMA
/* /*
* This is the same as kmap_atomic() but can map memory that doesn't * This is the same as kmap_atomic() but can map memory that doesn't
* have a struct page associated with it. * have a struct page associated with it.
...@@ -101,6 +102,7 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type) ...@@ -101,6 +102,7 @@ void *kmap_atomic_pfn(unsigned long pfn, enum km_type type)
return (void*) vaddr; return (void*) vaddr;
} }
#endif /* CONFIG_LIMITED_DMA */
struct page *__kmap_atomic_to_page(void *ptr) struct page *__kmap_atomic_to_page(void *ptr)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment