On Mon Jun 22, 2026 at 3:44 AM BST, Alvin Sun wrote: > Auto-add `type OwnerModule: ::kernel::ModuleMetadata;` as a required > associated type on the trait side if not already defined, and > auto-insert `type OwnerModule = crate::LocalModule;` on the impl side > if not explicitly provided, eliminating the need to manually declare > and implement `OwnerModule` in every vtable trait and impl. > > Reviewed-by: Andreas Hindborg <[email protected]> > Suggested-by: Gary Guo <[email protected]> > Link: https://lore.kernel.org/all/[email protected] > Signed-off-by: Alvin Sun <[email protected]>
Reviewed-by: Gary Guo <[email protected]> > --- > rust/macros/lib.rs | 6 ++++++ > rust/macros/vtable.rs | 41 ++++++++++++++++++++++++++++++++++++----- > 2 files changed, 42 insertions(+), 5 deletions(-)

