// SPDX-License-Identifier: GPL-2.012#include <linux/gfp.h>3#include <linux/highmem.h>4#include <linux/mm.h>56struct page *rust_helper_alloc_pages(gfp_t gfp_mask, unsigned int order)7{8return alloc_pages(gfp_mask, order);9}1011void *rust_helper_kmap_local_page(struct page *page)12{13return kmap_local_page(page);14}1516void rust_helper_kunmap_local(const void *addr)17{18kunmap_local(addr);19}2021#ifndef NODE_NOT_IN_PAGE_FLAGS22int rust_helper_page_to_nid(const struct page *page)23{24return page_to_nid(page);25}26#endif272829