提交 e3c3374f 编写于 作者: L Linus Torvalds

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: NLinus Torvalds <torvalds@osdl.org>
上级 0ceaacc9
...@@ -1223,7 +1223,7 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page * ...@@ -1223,7 +1223,7 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *
return -EINVAL; return -EINVAL;
return insert_page(vma->vm_mm, addr, page, vma->vm_page_prot); return insert_page(vma->vm_mm, addr, page, vma->vm_page_prot);
} }
EXPORT_SYMBOL_GPL(vm_insert_page); EXPORT_SYMBOL(vm_insert_page);
/* /*
* Somebody does a pfn remapping that doesn't actually work as a vma. * Somebody does a pfn remapping that doesn't actually work as a vma.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册