diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-03 23:48:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-12-03 23:48:11 -0500 |
commit | e3c3374fbf7efe9487edc53cd10436ed641983aa (patch) | |
tree | 316a9e9ea22c49de5bef8af6a4b4557353f7d36a /mm/memory.c | |
parent | 0ceaacc9785fedc500e19b024d606a82a23f5372 (diff) |
Make vm_insert_page() available to NVidia module
It used to use remap_pfn_range(), which wasn't GPL-only either, and the
new interface is actually simpler and does more checking, so we
shouldn't unnecessarily discourage people from switching over.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 4b4fc3a7ea48..aa8af0e20269 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -1223,7 +1223,7 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page * | |||
1223 | return -EINVAL; | 1223 | return -EINVAL; |
1224 | return insert_page(vma->vm_mm, addr, page, vma->vm_page_prot); | 1224 | return insert_page(vma->vm_mm, addr, page, vma->vm_page_prot); |
1225 | } | 1225 | } |
1226 | EXPORT_SYMBOL_GPL(vm_insert_page); | 1226 | EXPORT_SYMBOL(vm_insert_page); |
1227 | 1227 | ||
1228 | /* | 1228 | /* |
1229 | * Somebody does a pfn remapping that doesn't actually work as a vma. | 1229 | * Somebody does a pfn remapping that doesn't actually work as a vma. |