The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH -next] rust_binder: use `LocalModule` for `THIS_MODULE`
@ 2026-08-13 16:39 Gary Guo
  2026-08-13 17:05 ` Miguel Ojeda
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Guo @ 2026-08-13 16:39 UTC (permalink / raw)
  To: Mark Brown, Greg Kroah-Hartman, Arve Hjønnevåg,
	Todd Kjos, Christian Brauner, Carlos Llamas, Alice Ryhl,
	Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Trevor Gross, Danilo Krummrich,
	Daniel Almeida, Tamir Duberstein, Alexandre Courbot,
	Onur Özkan
  Cc: linux-next, Alvin Sun, linux-kernel, rust-for-linux

From: Gary Guo <gary@garyguo.net>

Replace the `THIS_MODULE` static reference in the binder netlink code with
`this_module::<LocalModule>()`, consistent with the move of `THIS_MODULE`
into the `ModuleMetadata` trait.

Cc: Alvin Sun <alvin.sun@linux.dev>
Signed-off-by: Gary Guo <gary@garyguo.net>
---
This is to resolve the semantic conflict between rust-next and
char-misc-next.
---
 drivers/android/binder/netlink.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/android/binder/netlink.rs b/drivers/android/binder/netlink.rs
index beb7ea2edaff..f34e1009432c 100644
--- a/drivers/android/binder/netlink.rs
+++ b/drivers/android/binder/netlink.rs
@@ -13,7 +13,7 @@
 };
 
 pub static BINDER_NL_FAMILY: Family = Family::const_new(
-    &crate::THIS_MODULE,
+    kernel::module::this_module::<crate::LocalModule>(),
     kernel::uapi::BINDER_FAMILY_NAME,
     kernel::uapi::BINDER_FAMILY_VERSION,
     &BINDER_NL_FAMILY_MCGRPS,

base-commit: 2697ef8943c9985c14708a6429e21812693857b2
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] rust_binder: use `LocalModule` for `THIS_MODULE`
  2026-08-13 16:39 [PATCH -next] rust_binder: use `LocalModule` for `THIS_MODULE` Gary Guo
@ 2026-08-13 17:05 ` Miguel Ojeda
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Ojeda @ 2026-08-13 17:05 UTC (permalink / raw)
  To: Gary Guo
  Cc: Mark Brown, Greg Kroah-Hartman, Arve Hjønnevåg,
	Todd Kjos, Christian Brauner, Carlos Llamas, Alice Ryhl,
	Miguel Ojeda, Boqun Feng, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Trevor Gross, Danilo Krummrich, Daniel Almeida,
	Tamir Duberstein, Alexandre Courbot, Onur Özkan, linux-next,
	Alvin Sun, linux-kernel, rust-for-linux

On Thu, Aug 13, 2026 at 6:40 PM Gary Guo <gary@kernel.org> wrote:
>
> From: Gary Guo <gary@garyguo.net>
>
> Replace the `THIS_MODULE` static reference in the binder netlink code with
> `this_module::<LocalModule>()`, consistent with the move of `THIS_MODULE`
> into the `ModuleMetadata` trait.
>
> Cc: Alvin Sun <alvin.sun@linux.dev>
> Signed-off-by: Gary Guo <gary@garyguo.net>
> ---
> This is to resolve the semantic conflict between rust-next and
> char-misc-next.

Thanks Gary!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-13 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 16:39 [PATCH -next] rust_binder: use `LocalModule` for `THIS_MODULE` Gary Guo
2026-08-13 17:05 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox