Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: blk: Add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20260105-define-rust-helper-v2-2-51da5f454a67@google.com

authored by

Alice Ryhl and committed by
Boqun Feng
71a4d13f aa574e0f

+2 -2
+2 -2
rust/helpers/blk.c
··· 3 3 #include <linux/blk-mq.h> 4 4 #include <linux/blkdev.h> 5 5 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) 7 7 { 8 8 return blk_mq_rq_to_pdu(rq); 9 9 } 10 10 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) 12 12 { 13 13 return blk_mq_rq_from_pdu(pdu); 14 14 }