Re: [PATCH v12 1/6] rust: add C wrappers for ww_mutex inline functions
From: Gary Guo
Date: Mon Oct 12 2026 - 07:46:27 EST
On Mon Oct 12, 2026 at 11:26 AM BST, Onur Özkan wrote:
> Some of the kernel's `ww_mutex` functions are implemented as
> `static inline`, so they are inaccessible from Rust as bindgen
> can't generate code on them. This patch provides C function wrappers
> around these inline implementations, so bindgen can see them and
> generate the corresponding Rust code.
>
> Reviewed-by: Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Reviewed-by: Lyude Paul <lyude@xxxxxxxxxx>
> Signed-off-by: Onur Özkan <work@xxxxxxxxxxxxx>
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
> ---
> MAINTAINERS | 1 +
> rust/helpers/helpers.c | 1 +
> rust/helpers/ww_mutex.c | 33 +++++++++++++++++++++++++++++++++
> 3 files changed, 35 insertions(+)
> create mode 100644 rust/helpers/ww_mutex.c