]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: module: use a reference in macros::module::module
authorAndreas Hindborg <a.hindborg@kernel.org>
Wed, 24 Sep 2025 12:39:27 +0000 (14:39 +0200)
committerDaniel Gomez <da.gomez@kernel.org>
Mon, 3 Nov 2025 13:41:29 +0000 (14:41 +0100)
commit3809d7a89fe550bf4065c04adff6dac610daddad
treedb4a62937a6d4e65d22dd2a31519e72dbb79a07e
parent0b08fc292842a13aa496413b48c1efb83573b8c6
rust: module: use a reference in macros::module::module

When we add parameter support to the module macro, we want to be able to
pass a reference to `ModuleInfo` to a helper function. That is not possible
when we move out of the local `modinfo`. So change the function to access
the local via reference rather than value.

Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Tested-by: Daniel Gomez <da.gomez@samsung.com>
Signed-off-by: Daniel Gomez <da.gomez@kernel.org>
rust/macros/module.rs