xref: /linux/rust/helpers/blk.c (revision 37a93dd5c49b5fda807fd204edf2547c3493319c)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/blk-mq.h>
4 #include <linux/blkdev.h>
5 
6 __rust_helper void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
7 {
8 	return blk_mq_rq_to_pdu(rq);
9 }
10 
11 __rust_helper struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
12 {
13 	return blk_mq_rq_from_pdu(pdu);
14 }
15