mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
8f0b4cce44
commit
3365b71bc4
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue