Re: [PATCH v2 3/7] rust: doctest: add LocalModule fallback for #[vtable] ThisModule
Andreas Hindborg <[email protected]>
| Newsgroups | org.kernel.vger.linux-modules,dev.linux.lists.driver-core,dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-block,org.kernel.vger.linux-kselftest,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
Alvin Sun <[email protected]> writes: > Add a `LocalModule` struct with a null-pointer `ModuleMetadata` impl > in the doctest harness, so that `crate::LocalModule` (auto-inserted > by `#[vtable]`) resolves correctly when there is no `module!` macro. > > Signed-off-by: Alvin Sun <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Does this need to be ordered before the vtable auto insert in the patch series? Best regards, Andreas Hindborg