xref: /linux/rust/helpers/dma-resv.c (revision 9bdbf7eb25b3121ef19533df4fb70f2c39fc0d6a)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/dma-resv.h>
4 
5 __rust_helper
6 int rust_helper_dma_resv_lock(struct dma_resv *obj, struct ww_acquire_ctx *ctx)
7 {
8 	return dma_resv_lock(obj, ctx);
9 }
10 
11 __rust_helper void rust_helper_dma_resv_unlock(struct dma_resv *obj)
12 {
13 	dma_resv_unlock(obj);
14 }
15