]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: pin-init: change the way the `paste!` macro is called
authorBenno Lossin <benno.lossin@proton.me>
Sat, 8 Mar 2025 11:04:56 +0000 (11:04 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 16 Mar 2025 20:59:19 +0000 (21:59 +0100)
commitb321b9385409800859c2be722c6141909c7221b3
treef233da5e46bc454bc95d2078d185cdee021fcd94
parent31547c988257b3ddd1badb23c166c42b5310735c
rust: pin-init: change the way the `paste!` macro is called

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@proton.me>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250308110339.2997091-14-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/pin-init/src/macros.rs