summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-12-02 22:37:25 +0300
committerDanilo Krummrich <dakr@kernel.org>2025-12-16 00:19:53 +0300
commit3365b71bc4c574dd954e7954595c85bb75b6912c (patch)
tree619951b0636f842a812834e2a2977eb41fae658d
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff)
downloadlinux-3365b71bc4c574dd954e7954595c85bb75b6912c.tar.xz
rust: auxiliary: 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-1-a2e13cbc17a6@google.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
-rw-r--r--rust/helpers/auxiliary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/helpers/auxiliary.c b/rust/helpers/auxiliary.c
index 8b5e0fea4493..dd1c130843a0 100644
--- a/rust/helpers/auxiliary.c
+++ b/rust/helpers/auxiliary.c
@@ -2,12 +2,14 @@
#include <linux/auxiliary_bus.h>
-void rust_helper_auxiliary_device_uninit(struct auxiliary_device *adev)
+__rust_helper void
+rust_helper_auxiliary_device_uninit(struct auxiliary_device *adev)
{
return auxiliary_device_uninit(adev);
}
-void rust_helper_auxiliary_device_delete(struct auxiliary_device *adev)
+__rust_helper void
+rust_helper_auxiliary_device_delete(struct auxiliary_device *adev)
{
return auxiliary_device_delete(adev);
}