diff options
author | Lyude Paul <lyude@redhat.com> | 2025-02-25 16:29:00 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 18:02:24 -0800 |
commit | 6853d9d13dbe596a73ae968e6fb27ba9680b2441 (patch) | |
tree | 4b5525654583cfeacd27f76ac0b4202ebaad9ad5 /rust/kernel/faux.rs | |
parent | 040b17ae0e15bd7100432e0a20c6557d463a8c9f (diff) |
rust/faux: Drop #[repr(transparent)] from faux::Registration
I think this change got missed during review, we don't need
#[repr(transparent)] since Registration just holds a single NonNull. This
attribute had originally been added by me when I was still figuring out how
the bindings should look like but got committed by mistake. So, just drop
it.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Fiona Behrens <me@Kloenk.dev>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250225213112.872264-2-lyude@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/faux.rs')
-rw-r--r-- | rust/kernel/faux.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rust/kernel/faux.rs b/rust/kernel/faux.rs index 5acc0c02d451f..41751403cd868 100644 --- a/rust/kernel/faux.rs +++ b/rust/kernel/faux.rs @@ -19,7 +19,6 @@ use core::ptr::{addr_of_mut, null, null_mut, NonNull}; /// `self.0` always holds a valid pointer to an initialized and registered [`struct faux_device`]. /// /// [`struct faux_device`]: srctree/include/linux/device/faux.h -#[repr(transparent)] pub struct Registration(NonNull<bindings::faux_device>); impl Registration { |