Skip to content

Commit 101bfe2

Browse files
Darksonnkawasaki
authored andcommitted
rust: blk: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Alice Ryhl <[email protected]>
1 parent 0ab4e8c commit 101bfe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/helpers/blk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#include <linux/blk-mq.h>
44
#include <linux/blkdev.h>
55

6-
void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
6+
__rust_helper void *rust_helper_blk_mq_rq_to_pdu(struct request *rq)
77
{
88
return blk_mq_rq_to_pdu(rq);
99
}
1010

11-
struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
11+
__rust_helper struct request *rust_helper_blk_mq_rq_from_pdu(void *pdu)
1212
{
1313
return blk_mq_rq_from_pdu(pdu);
1414
}

0 commit comments

Comments
 (0)