Re: [PATCH v3 3/4] rust: platform: Add ACPI match table support to `Driver` trait
From: Danilo Krummrich
Date: Sun Jun 08 2025 - 06:58:46 EST
On Fri, Jun 06, 2025 at 06:09:05PM +0100, Igor Korotin wrote:
> @@ -144,6 +150,7 @@ macro_rules! module_platform_driver {
> /// impl platform::Driver for MyDriver {
> /// type IdInfo = ();
> /// const OF_ID_TABLE: Option<of::IdTable<Self::IdInfo>> = Some(&OF_TABLE);
> +/// const ACPI_ID_TABLE: Option<acpi::IdTable<Self::IdInfo>> = Some(&ACPI_TABLE);
This breaks the doctest. You need to define ACPI_TABLE above, just like OF_TABLE
is defined above.
If you enable CONFIG_RUST_KERNEL_DOCTESTS=y it will compile the doctests and run
them as kunit test.