diff options
| author | Mark Brown <broonie@kernel.org> | 2026-09-14 15:21:32 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-14 15:21:32 +0100 |
| commit | ffd7ecb7d61e3afef13b44afc2aca8ccc95cbaa5 (patch) | |
| tree | 9e15b62195a684d84491b055ca4219b724f2688f /rust/kernel/sync/atomic.rs | |
| parent | 62c0e6c9d9a275040a145a92dd42316a110e484e (diff) | |
| parent | 66a2c223b620d844fe26c6bd4844d2a6a8c9dffc (diff) | |
| download | linux-next-ffd7ecb7d61e3afef13b44afc2aca8ccc95cbaa5.tar.gz linux-next-ffd7ecb7d61e3afef13b44afc2aca8ccc95cbaa5.zip | |
Merge branch 'for-linux-next' of https://gitlab.freedesktop.org/drm/rust/kernel.git
Diffstat (limited to 'rust/kernel/sync/atomic.rs')
| -rw-r--r-- | rust/kernel/sync/atomic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/sync/atomic.rs b/rust/kernel/sync/atomic.rs index 9cd009d57e35..6d27898add42 100644 --- a/rust/kernel/sync/atomic.rs +++ b/rust/kernel/sync/atomic.rs @@ -140,7 +140,7 @@ pub unsafe trait AtomicAdd<Rhs = Self>: AtomicType { const fn into_repr<T: AtomicType>(v: T) -> T::Repr { // SAFETY: Per the safety requirement of `AtomicType`, `T` is round-trip transmutable to // `T::Repr`, therefore the transmute operation is sound. - unsafe { core::mem::transmute_copy(&v) } + unsafe { crate::mem::transmute(v) } } /// # Safety @@ -149,7 +149,7 @@ const fn into_repr<T: AtomicType>(v: T) -> T::Repr { #[inline(always)] const unsafe fn from_repr<T: AtomicType>(r: T::Repr) -> T { // SAFETY: Per the safety requirement of the function, the transmute operation is sound. - unsafe { core::mem::transmute_copy(&r) } + unsafe { crate::mem::transmute(r) } } impl<T: AtomicType> Atomic<T> { |
