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

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

From: Andreas Hindborg <a.hindborg@kernel.org>
Date: 2026-06-23 12:29:20
Also in: dri-devel, driver-core, linux-block, linux-kselftest, linux-pci, lkml, netdev, nova-gpu, rust-for-linux

Alvin Sun [off-list ref] writes:
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: Andreas Hindborg <a.hindborg@kernel.org>


Best regards,
Andreas Hindborg


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help