Re: [PATCH v3 6/6] rust: configfs: use `LocalModule` for `THIS_MODULE`
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-kernel,org.kernel.vger.linux-kselftest,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
Alvin Sun <[email protected]> writes: > Replace the `THIS_MODULE` static reference in the `configfs_attrs!` > macro with `this_module::<LocalModule>()`, and update > rnull to import `LocalModule` instead of `THIS_MODULE`, consistent > with the move of `THIS_MODULE` into the `ModuleMetadata` trait. > > Signed-off-by: Alvin Sun <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Best regards, Andreas Hindborg