Re: [PATCH] rust: ACPI: fix missing match data for PRP0001

Greg Kroah-Hartman
2026-04-05T05:47:38Z

On Sat, Apr 04, 2026 at 11:32:44PM +0200, Danilo Krummrich wrote:
> On Sat Apr 4, 2026 at 11:23 PM CEST, Gary Guo wrote:
> > BTW, if most drivers use driver_data of ID as pointers, why is it defined as
> > kernel_ulong_t instead of just `void*`?
>
> I think that's because the ID tables are exported to userspace via
> scripts/mod/file2alias.c. If it would be void *, then there could be a mismatch
> in size when cross compiling.
>

That is correct, and is why it is defined this way.