diff options
Diffstat (limited to 'arch/mips/mm/mmap.c')
-rw-r--r-- | arch/mips/mm/mmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c index d9be7540a6be..7e5fe2790d8a 100644 --- a/arch/mips/mm/mmap.c +++ b/arch/mips/mm/mmap.c | |||
@@ -192,3 +192,9 @@ unsigned long arch_randomize_brk(struct mm_struct *mm) | |||
192 | 192 | ||
193 | return ret; | 193 | return ret; |
194 | } | 194 | } |
195 | |||
196 | int __virt_addr_valid(const volatile void *kaddr) | ||
197 | { | ||
198 | return pfn_valid(PFN_DOWN(virt_to_phys(kaddr))); | ||
199 | } | ||
200 | EXPORT_SYMBOL_GPL(__virt_addr_valid); | ||