Skip to content

Commit 6853d9d

Browse files
Lyudegregkh
authored andcommitted
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>
1 parent 040b17a commit 6853d9d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

rust/kernel/faux.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use core::ptr::{addr_of_mut, null, null_mut, NonNull};
1919
/// `self.0` always holds a valid pointer to an initialized and registered [`struct faux_device`].
2020
///
2121
/// [`struct faux_device`]: srctree/include/linux/device/faux.h
22-
#[repr(transparent)]
2322
pub struct Registration(NonNull<bindings::faux_device>);
2423

2524
impl Registration {

0 commit comments

Comments
 (0)