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

Miguel Ojeda
2023-04-06T16:25:26Z

On Thu, Apr 6, 2023 at 1:22 PM Marco Elver <elver@google.com> 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