Thread (19 messages) 19 messages, 3 authors, 6d ago

Re: [PATCH v4 9/9] rust: macros: remove `THIS_MODULE` static from `module!`

From: "Gary Guo" <gary@garyguo.net>
Date: 2026-06-23 13:53:58
Also in: dri-devel, driver-core, linux-block, linux-kselftest, linux-pci, lkml, netdev, nova-gpu, rust-for-linux

On Tue Jun 23, 2026 at 7:29 AM BST, Alvin Sun wrote:
All users have been migrated to `ModuleMetadata::THIS_MODULE` const or
`this_module::<LocalModule>()` helper. The `static THIS_MODULE`
generated by the `module!` macro is no longer referenced anywhere,
so remove it to avoid having two sources of the same `ThisModule`
pointer.

Signed-off-by: Alvin Sun <redacted>
Reviewed-by: Gary Guo <gary@garyguo.net>
---
 rust/macros/module.rs | 16 ----------------
 1 file changed, 16 deletions(-)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help