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 | ||
---|---|---|
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 | { |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9