Skip to content

Commit

Permalink
[MIPS] Fix CONFIG_LIMITED_DMA build.
Browse files Browse the repository at this point in the history
This fix a build error for the Momentum Jaguar ATX eval board.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Apr 19, 2006
1 parent 41d4f0e commit f13b68e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
{
Expand Down

0 comments on commit f13b68e

Please sign in to comment.