1 // SPDX-License-Identifier: GPL-2.0 2 3 #include <linux/gfp.h> 4 #include <linux/highmem.h> 5 6 struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order) 7 { 8 return alloc_pages(gfp_mask, order); 9 } 10 EXPORT_SYMBOL_GPL(rust_helper_alloc_pages); 11 12 void *rust_helper_kmap_local_page(struct page *page) 13 { 14 return kmap_local_page(page); 15 } 16 EXPORT_SYMBOL_GPL(rust_helper_kmap_local_page); 17 18 void rust_helper_kunmap_local(const void *addr) 19 { 20 kunmap_local(addr); 21 } 22 EXPORT_SYMBOL_GPL(rust_helper_kunmap_local); 23