From: Linus Torvalds Date: Sun, 4 Dec 2005 04:48:11 +0000 (-0800) Subject: Make vm_insert_page() available to NVidia module X-Git-Tag: v2.6.15-rc5~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e3c3374fbf7efe9487edc53cd10436ed641983aa;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/mm/memory.c b/mm/memory.c index 4b4fc3a7ea4..aa8af0e2026 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 * return -EINVAL; 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.