Re: [PATCH] rust: kbuild: set `bindgen`'s Rust target version

From: Miguel Ojeda
Date: Sat Dec 14 2024 - 01:35:31 EST


On Tue, Dec 10, 2024 at 1:09 AM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> Applied to `rust-fixes` -- thanks!
>
> I added the following note to the commit message and added a small
> sentence to the comment too:
>
> Starting with `bindgen` 0.71.0 [4], we will be able to set any future
> Rust version instead, i.e. we will be able to set here our minimum
> supported Rust version. Christian implemented it [5] after seeing this
> patch. Thanks!
>
> I also queued it for stable:
>
> Cc: stable@xxxxxxxxxxxxxxx # needed for 6.12.y; unneeded for
> 6.6.y; do not apply to 6.1.y
> Fixes: c844fa64a2d4 ("rust: start supporting several `bindgen` versions")

This is now also needed to support `bindgen` >= 0.71.0 and higher
together with `rustc` < 1.82.0, since a week ago `bindgen`'s release
started using `unsafe extern` blocks.

Cheers,
Miguel