diff options
| author | Antonio Hickey <[email protected]> | 2025-03-20 02:07:35 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-03-23 19:39:37 +0000 |
| commit | 2a571248dfa9d1ebac9db4564472b3dec157c99f (patch) | |
| tree | 6546366a33f84cec9e916947b2fce3058723d74f /samples/rust/rust_driver_faux.rs | |
| parent | rust: enable `raw_ref_op` feature (diff) | |
| download | kernel-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 'samples/rust/rust_driver_faux.rs')
0 files changed, 0 insertions, 0 deletions
