Re: [PATCH v2 03/13] rust: lock: introduce `Mutex`

From: Miguel Ojeda
Date: Thu Apr 06 2023 - 12:25:26 EST


On Thu, Apr 6, 2023 at 1:22 PM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> For macro to inline function conversions, the most conservative option
> would be __always_inline. We've also seen things go wrong with
> "inline" only paired with various kinds of instrumentation.
>
> Can bindgen deal with "static __always_inline" functions?

If you mean the new feature where `bindgen` generates wrappers
automatically, it seems to handle them given `__always_inline` =>
`inline` which is what I imagine it looks for (I assume it does not
care about the actual attribute), though I haven't tried to use the
feature within the kernel yet.

Cheers,
Miguel