Re: [PATCH 13/22] rust: pin-init: change the way the `paste!` macro is called

From: Andreas Hindborg
Date: Wed Mar 05 2025 - 06:53:15 EST


"Benno Lossin" <benno.lossin@xxxxxxxxx> writes:

> Change the paste macro path from `::kernel::macros::paste!` to use
> `$crate::init::macros::paste!` instead, which links to
> `::macros::paste!`. This is because the pin-init crate will be a
> dependency of the kernel, so it itself cannot have the kernel as a
> dependency.
>
> Signed-off-by: Benno Lossin <benno.lossin@xxxxxxxxx>

Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>


Best regards,
Andreas Hindborg