Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / rust / helpers / page.c
blobb3f2b8fbf87fc9aa89cb1636736c52be16411301
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/gfp.h>
4 #include <linux/highmem.h>
6 struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order)
8 return alloc_pages(gfp_mask, order);
11 void *rust_helper_kmap_local_page(struct page *page)
13 return kmap_local_page(page);
16 void rust_helper_kunmap_local(const void *addr)
18 kunmap_local(addr);