Skip to content

Commit e3c3374

Browse files
author
Linus Torvalds
committed
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 <[email protected]>
1 parent 0ceaacc commit e3c3374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *
12231223
return -EINVAL;
12241224
return insert_page(vma->vm_mm, addr, page, vma->vm_page_prot);
12251225
}
1226-
EXPORT_SYMBOL_GPL(vm_insert_page);
1226+
EXPORT_SYMBOL(vm_insert_page);
12271227

12281228
/*
12291229
* Somebody does a pfn remapping that doesn't actually work as a vma.

0 commit comments

Comments
 (0)