Replace the `THIS_MODULE` static reference in the `configfs_attrs!` macro with `<LocalModule as ModuleMetadata>::THIS_MODULE`, consistent with the move of `THIS_MODULE` into the `ModuleMetadata` trait.
Signed-off-by: Alvin Sun <[email protected]> --- rust/kernel/configfs.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rust/kernel/configfs.rs b/rust/kernel/configfs.rs index 2339c6467325d..cc60297f11551 100644 --- a/rust/kernel/configfs.rs +++ b/rust/kernel/configfs.rs @@ -875,7 +875,7 @@ fn as_ptr(&self) -> *const bindings::config_item_type { /// configfs::Subsystem<Configuration>, /// Configuration /// >::new_with_child_ctor::<N,Child>( -/// &THIS_MODULE, +/// &<LocalModule as ::kernel::ModuleMetadata>::THIS_MODULE, /// &CONFIGURATION_ATTRS /// ); /// @@ -1021,7 +1021,8 @@ macro_rules! configfs_attrs { static [< $data:upper _TPE >] : $crate::configfs::ItemType<$container, $data> = $crate::configfs::ItemType::<$container, $data>::new::<N>( - &THIS_MODULE, &[<$ data:upper _ATTRS >] + &<LocalModule as ::kernel::ModuleMetadata>::THIS_MODULE, + &[<$ data:upper _ATTRS >] ); )? @@ -1030,7 +1031,8 @@ macro_rules! configfs_attrs { $crate::configfs::ItemType<$container, $data> = $crate::configfs::ItemType::<$container, $data>:: new_with_child_ctor::<N, $child>( - &THIS_MODULE, &[<$ data:upper _ATTRS >] + &<LocalModule as ::kernel::ModuleMetadata>::THIS_MODULE, + &[<$ data:upper _ATTRS >] ); )? -- 2.43.0
