xref: /linux/rust/helpers/gpu.c (revision 4a57e0913e8c7fff407e97909f4ae48caa84d612)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/gpu_buddy.h>
4 
5 #ifdef CONFIG_GPU_BUDDY
6 
7 __rust_helper u64 rust_helper_gpu_buddy_block_offset(const struct gpu_buddy_block *block)
8 {
9 	return gpu_buddy_block_offset(block);
10 }
11 
12 __rust_helper unsigned int rust_helper_gpu_buddy_block_order(struct gpu_buddy_block *block)
13 {
14 	return gpu_buddy_block_order(block);
15 }
16 
17 #endif /* CONFIG_GPU_BUDDY */
18