aboutsummaryrefslogtreecommitdiffstats
path: root/rust/macros/export.rs
diff options
context:
space:
mode:
authorAntonio Hickey <[email protected]>2025-03-20 02:07:35 +0000
committerMiguel Ojeda <[email protected]>2025-03-23 19:39:37 +0000
commit2a571248dfa9d1ebac9db4564472b3dec157c99f (patch)
tree6546366a33f84cec9e916947b2fce3058723d74f /rust/macros/export.rs
parentrust: enable `raw_ref_op` feature (diff)
downloadkernel-2a571248dfa9d1ebac9db4564472b3dec157c99f.tar.gz
kernel-2a571248dfa9d1ebac9db4564472b3dec157c99f.zip
rust: block: refactor to use `&raw mut`
Replace all occurrences (one) of `addr_of_mut!(place)` with `&raw mut place`. This will allow us to reduce macro complexity, and improve consistency with existing reference syntax as `&raw mut` is similar to `&mut` making it fit more naturally with other existing code. Suggested-by: Benno Lossin <[email protected]> Link: https://github.com/Rust-for-Linux/linux/issues/1148 Signed-off-by: Antonio Hickey <[email protected]> Acked-by: Andreas Hindborg <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Reworded slightly. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/export.rs')
0 files changed, 0 insertions, 0 deletions