]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: pin-init: internal: synchronize with user-space version
authorBenno Lossin <benno.lossin@proton.me>
Sat, 8 Mar 2025 11:05:22 +0000 (11:05 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 16 Mar 2025 20:59:19 +0000 (21:59 +0100)
commit7cb5dee4c8349f8cc3e1ce529df4e18ebe3fed2e
treef32e72a97a86c03d1f1bf92a03ef2ecadef097f5
parent02c01c089d125ccc1ecbf331481e7de6f1f38f4e
rust: pin-init: internal: synchronize with user-space version

Synchronize the internal macros crate with the user-space version that
uses the quote crate [1] instead of a custom `quote!` macro. The imports
in the different version are achieved using `cfg` on the kernel config
value. This cfg is always set in the kernel and never set in the
user-space version.

Since the quote crate requires the proc_macro2 crate, imports also need
to be adjusted and `.into()` calls have to be inserted.

Link: https://crates.io/crates/quote
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Fiona Behrens <me@Kloenk.dev>
Link: https://lore.kernel.org/r/20250308110339.2997091-19-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/pin-init/internal/src/helpers.rs
rust/pin-init/internal/src/lib.rs
rust/pin-init/internal/src/pin_data.rs
rust/pin-init/internal/src/pinned_drop.rs
rust/pin-init/internal/src/zeroable.rs