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.

vm: add no-mmu vm_iomap_memory() stub

I think we could just move the full vm_iomap_memory() function into
util.h or similar, but I didn't get any reply from anybody actually
using nommu even to this trivial patch, so I'm not going to touch it any
more than required.

Here's the fairly minimal stub to make the nommu case at least
potentially work. It doesn't seem like anybody cares, though.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+10
+10
mm/nommu.c
··· 1838 1838 } 1839 1839 EXPORT_SYMBOL(remap_pfn_range); 1840 1840 1841 + int vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len) 1842 + { 1843 + unsigned long pfn = start >> PAGE_SHIFT; 1844 + unsigned long vm_len = vma->vm_end - vma->vm_start; 1845 + 1846 + pfn += vma->vm_pgoff; 1847 + return io_remap_pfn_range(vma, vma->vm_start, pfn, vm_len, vma->vm_page_prot); 1848 + } 1849 + EXPORT_SYMBOL(vm_iomap_memory); 1850 + 1841 1851 int remap_vmalloc_range(struct vm_area_struct *vma, void *addr, 1842 1852 unsigned long pgoff) 1843 1853 {