Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NOMMU: Stub out vm_get_page_prot() if there's no MMU

Stub out vm_get_page_prot() if there's no MMU.

This was added by commit 804af2cf6e7a ("[AGPGART] remove private page
protection map") and is used in commit c07fbfd17e61 ("fbmem: VM_IO set,
but not propagated") in the fbmem video driver, but the function doesn't
exist on NOMMU, resulting in an undefined symbol at link time.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Howells and committed by
Linus Torvalds
bad849b3 0a3b6e45

+8
+8
include/linux/mm.h
··· 1363 1363 return (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; 1364 1364 } 1365 1365 1366 + #ifdef CONFIG_MMU 1366 1367 pgprot_t vm_get_page_prot(unsigned long vm_flags); 1368 + #else 1369 + static inline pgprot_t vm_get_page_prot(unsigned long vm_flags) 1370 + { 1371 + return __pgprot(0); 1372 + } 1373 + #endif 1374 + 1367 1375 struct vm_area_struct *find_extend_vma(struct mm_struct *, unsigned long addr); 1368 1376 int remap_pfn_range(struct vm_area_struct *, unsigned long addr, 1369 1377 unsigned long pfn, unsigned long size, pgprot_t);