]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/mm.h
NOMMU: Stub out vm_get_page_prot() if there's no MMU
[net-next-2.6.git] / include / linux / mm.h
index 831c693416b28dcd35bd3b98c15e7d554c9919ff..e6b1210772ceace3fc70817a32e1a411096a6b22 100644 (file)
@@ -1363,7 +1363,15 @@ static inline unsigned long vma_pages(struct vm_area_struct *vma)
        return (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
 }
 
+#ifdef CONFIG_MMU
 pgprot_t vm_get_page_prot(unsigned long vm_flags);
+#else
+static inline pgprot_t vm_get_page_prot(unsigned long vm_flags)
+{
+       return __pgprot(0);
+}
+#endif
+
 struct vm_area_struct *find_extend_vma(struct mm_struct *, unsigned long addr);
 int remap_pfn_range(struct vm_area_struct *, unsigned long addr,
                        unsigned long pfn, unsigned long size, pgprot_t);