Message ID | 20240327191933.607220-2-axboe@kernel.dk (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Move away from remap_pfn_range() | expand |
On Wed, Mar 27, 2024 at 01:13:36PM -0600, Jens Axboe wrote: > An identical one exists for vm_insert_page(), add one for > vm_insert_pages() to avoid needing to check for CONFIG_MMU in code using > it. > > Signed-off-by: Jens Axboe <axboe@kernel.dk> Acked-by: Johannes Weiner <hannes@cmpxchg.org>
diff --git a/mm/nommu.c b/mm/nommu.c index 5ec8f44e7ce9..a34a0e376611 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -355,6 +355,13 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, } EXPORT_SYMBOL(vm_insert_page); +int vm_insert_pages(struct vm_area_struct *vma, unsigned long addr, + struct page **pages, unsigned long *num) +{ + return -EINVAL; +} +EXPORT_SYMBOL(vm_insert_pages); + int vm_map_pages(struct vm_area_struct *vma, struct page **pages, unsigned long num) {
An identical one exists for vm_insert_page(), add one for vm_insert_pages() to avoid needing to check for CONFIG_MMU in code using it. Signed-off-by: Jens Axboe <axboe@kernel.dk> --- mm/nommu.c | 7 +++++++ 1 file changed, 7 insertions(+)