Re: [PATCH v2] rust : Update the bios_limit_callback to use the C FFI types #1170

From: Miguel Ojeda
Date: Thu Jun 12 2025 - 07:52:07 EST


On Thu, Jun 12, 2025 at 12:43 PM Abhinav Ananthu <abhinav.ogl@xxxxxxxxx> wrote:
>
> Update the `bios_limit_callback` function to use `c_int` and `c_uint` types,
> which match the C ABI for the corresponding callback function. These types are
> imported from the prelude.
>
> This change ensures the Rust function signature exactly matches its expected
> C counterpart, avoiding potential issues with type mismatches in the FFI
> boundary.
>
> Reported-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Closes: https://lore.kernel.org/rust-for-linux/CANiq72=WpuGELzLbH-fxdOeJy9fiDFwatz6ynERDh=HP2z2MBw@xxxxxxxxxxxxxx/.
> Signed-off-by: Abhinav Ananthu <abhinav.ogl@xxxxxxxxx>

This seems to be a duplicate email.

Cheers,
Miguel