Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: module: add static pointer to
{init,cleanup}_module()
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, 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 Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
- Loading branch information