mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 17:18:25 +02:00
Add the equivalent of the `___ADDRESSABLE()` annotation in the
`module_{init,exit}` macros to the Rust `module!` macro.
Without this, `objtool` would complain if enabled for Rust (under IBT
builds), e.g.:
samples/rust/rust_print.o: warning: objtool: cleanup_module(): not an indirect call target
samples/rust/rust_print.o: warning: objtool: init_module(): not an indirect call target
Tested-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20240725183325.122827-2-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
|
||
|---|---|---|
| .. | ||
| concat_idents.rs | ||
| helpers.rs | ||
| lib.rs | ||
| module.rs | ||
| paste.rs | ||
| pin_data.rs | ||
| pinned_drop.rs | ||
| quote.rs | ||
| vtable.rs | ||
| zeroable.rs | ||