Re: [PATCH v5 02/17] rust: init: refactor to use `&raw [const|mut]`
From: Benno Lossin
Date: Sun Mar 23 2025 - 06:30:04 EST
On Thu Mar 20, 2025 at 3:07 AM CET, Antonio Hickey wrote:
> Replacing all occurrences 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 <benno.lossin@xxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1148
> Signed-off-by: Antonio Hickey <contact@xxxxxxxxxxxxxxxxx>
> ---
> rust/kernel/init.rs | 8 ++++----
> rust/kernel/init/macros.rs | 28 ++++++++++++++--------------
> 2 files changed, 18 insertions(+), 18 deletions(-)
These files have been moved in rust-next, so if you send a new
version, it would be great if you could also rebase onto rust-next.
---
Cheers,
Benno