Re: [PATCH v4 00/11] rust: bindings: Auto-generate inline static functions

From: Alistair Francis
Date: Wed Dec 18 2024 - 01:32:59 EST


On Wed, Dec 4, 2024 at 11:14 PM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
>
> Hi Alistair,
>
> "Alistair Francis" <alistair@xxxxxxxxxxxxx> writes:
> >
> > This series adds support for bindgen generating wrappers for inline statics and
> > then converts the existing helper functions to this new method. This doesn't
> > work for C macros, so we can't reamove all of the helper functions, but we
> > can remove most.
>
> Are you aware of the helper LTO patches by Gary [1]? Can you tell if

I was not, but that's exciting to see

> this series will compose with the LTO patches?

I think it will still work, although it might take some extra effort.

I assume my series isn't going to be accepted though, so I'm not going
to try and get the LTO series to work on top of it. It's a lot of work
to rebase this series as every new binding causes a conflict and it
seems to have stalled

Alistair

>
> Also see this Zulip thread for discussion on the LTO patches [2].
>
>
> Best regards,
> Andreas Hindborg
>
>
>
> [1] https://github.com/nbdd0121/linux/tree/thin-lto
> [2] https://rust-for-linux.zulipchat.com/#narrow/channel/288089-General/topic/LTO.20Rust.20modules.20with.20C.20helpers
>