Thread (14 messages) 14 messages, 3 authors, 2025-06-30

Re: [PATCH v13 3/6] rust: module: use a reference in macros::module::module

From: "Benno Lossin" <lossin@kernel.org>
Date: 2025-06-18 20:07:34
Also in: linux-kbuild, lkml, rust-for-linux

On Thu Jun 12, 2025 at 3:40 PM CEST, Andreas Hindborg wrote:
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.

Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Benno Lossin <lossin@kernel.org>

---
Cheers,
Benno
quoted hunk ↗ jump to hunk
---
 rust/macros/module.rs | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 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