summaryrefslogtreecommitdiff
path: root/rust/helpers/gpu.c
blob: a25448d54d725b843574b738f5e9236c7ed89447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: GPL-2.0

#include <linux/gpu_buddy.h>

#ifdef CONFIG_GPU_BUDDY

__rust_helper u64 rust_helper_gpu_buddy_block_offset(const struct gpu_buddy_block *block)
{
	return gpu_buddy_block_offset(block);
}

__rust_helper unsigned int rust_helper_gpu_buddy_block_order(struct gpu_buddy_block *block)
{
	return gpu_buddy_block_order(block);
}

#endif /* CONFIG_GPU_BUDDY */