Re: [PATCH] rust: bindgen: Preserve sched_statistics alignment

From: Miguel Ojeda

Date: Fri Nov 20 2026 - 11:34:35 EST


On Fri, Nov 20, 2026 at 4:38 PM <peder.bergan@xxxxxxxxx> wrote:
>
> I looked into bindgen 0.73.1. The layout diverges earlier at
> task_struct.se, and my v1 leaves that offset unchanged.
>
> I ran a reduced test and found that making the type opaque can worsen
> field placement on 0.73.0 and 0.73.1. Would you prefer limiting the
> workaround to 0.73.2 with scheduler statistics disabled?

I don't think we need to do that: `bindgen` 0.73.0 and 0.73.1 had
other layout bugs and, anyway, it doesn't really matter fields are off
by 1 byte or many, i.e. they are completely wrong either way... :)

Cheers,
Miguel