mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-03 23:37:40 -04:00
rust: platform: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Gary Guo <gary@garyguo.net> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Link: https://patch.msgid.link/20251202-define-rust-helper-v1-28-a2e13cbc17a6@google.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
committed by
Danilo Krummrich
parent
593e0b2234
commit
d17772fcb5
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
bool rust_helper_dev_is_platform(const struct device *dev)
|
||||
__rust_helper bool rust_helper_dev_is_platform(const struct device *dev)
|
||||
{
|
||||
return dev_is_platform(dev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user