Date:2013-04-27 22:25:38 (10 years 4 months ago)
Author:Linus Torvalds
Commit:3c0b9de6d37a481673e81001c57ca0e410c72346
Message: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>
Files: mm/nommu.c (1 diff)

Change Details

mm/nommu.c
18381838}
18391839EXPORT_SYMBOL(remap_pfn_range);
18401840
1841int 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}
1849EXPORT_SYMBOL(vm_iomap_memory);
1850
18411851int remap_vmalloc_range(struct vm_area_struct *vma, void *addr,
18421852            unsigned long pgoff)
18431853{

Archive Download the corresponding diff file



interactive