Re: [PATCH v10 1/7] rust: add C wrappers for ww_mutex inline functions

From: Onur Özkan

Date: Tue Feb 03 2026 - 10:09:50 EST


On Tue, 3 Feb 2026 10:45:12 -0300
Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx> wrote:

> Hi Onur,
>
> Sorry for the delay, I’m finally getting back to this series.
>

No worries, thanks for looking on this.

>
> > On 3 Jan 2026, at 04:35, Onur Özkan <work@xxxxxxxxxxxxx> 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.
> >
> > Signed-off-by: Onur Özkan <work@xxxxxxxxxxxxx>
>
> My comment remains the same as v8 [0]: did you forget to pick up
> tags? There’s an r-b here in v7 [1].
>
> Or perhaps I’m missing something?
>

I didn't forget, the patch in this file is changed since that (see
__rust_helper prefixes).

Regards,
Onur

> — Daniel
>
> [0]:
> https://lore.kernel.org/rust-for-linux/2F879792-3C12-4C8F-8EF1-122F44EF2B19@xxxxxxxxxxxxx/
> [1]:
> https://lore.kernel.org/rust-for-linux/34A2E775-A47E-4D4E-A292-E12489F07987@xxxxxxxxxxxxx/
>
>