Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpu: nova-core: gsp: derive Zeroable for GspStaticConfigInfo

We can now derive `Zeroable` on tuple structs, so do this instead of
providing our own implementation.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260217-nova-misc-v3-6-b4e2d45eafbc@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

+1 -4
+1 -4
drivers/gpu/nova-core/gsp/fw/commands.rs
··· 107 107 108 108 /// Payload of the `GetGspStaticInfo` command and message. 109 109 #[repr(transparent)] 110 + #[derive(Zeroable)] 110 111 pub(crate) struct GspStaticConfigInfo(bindings::GspStaticConfigInfo_t); 111 112 112 113 impl GspStaticConfigInfo { ··· 123 122 // SAFETY: This struct only contains integer types for which all bit patterns 124 123 // are valid. 125 124 unsafe impl FromBytes for GspStaticConfigInfo {} 126 - 127 - // SAFETY: This struct only contains integer types and fixed-size arrays for which 128 - // all bit patterns are valid. 129 - unsafe impl Zeroable for GspStaticConfigInfo {}