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

From: Greg Kroah-Hartman

Date: Sun Apr 05 2026 - 01:47:59 EST


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.