On Thu Dec 3, 2026 at 9:09 PM JST, Alexandre Courbot wrote: > Use Zeroable::init_zeroed() for the remaining fields of > GspAcrBootGspRmParams and GspRmParams instead of naming bindgen padding > fields, as the r000 bindings replace those padding fields with reserved > and zero-defaulted fields. > > No functional change. > > Signed-off-by: Alexandre Courbot <[email protected]> > --- > drivers/gpu/nova-core/gsp/fw.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/nova-core/gsp/fw.rs b/drivers/gpu/nova-core/gsp/fw.rs > index b08f0834ca91..74e642e11afc 100644 > --- a/drivers/gpu/nova-core/gsp/fw.rs > +++ b/drivers/gpu/nova-core/gsp/fw.rs > @@ -1263,7 +1263,7 @@ fn new(target: GspDmaTarget, wpr_meta_addr: u64) -> > impl Init<Self> { > bIsGspRmBoot: 1, > wprCarveoutOffset: 0, > wprCarveoutSize: 0, > - __bindgen_padding_0: Default::default(), > + ..Zeroable::init_zeroed() > }); > > params > @@ -1277,7 +1277,7 @@ fn new(target: GspDmaTarget, libos_addr: u64) -> impl > Init<Self> { > let params = init!(Self { > target: target as u32, > bootArgsOffset: libos_addr, > - __bindgen_padding_0: Default::default(), > + ..Zeroable::init_zeroed() > }); > > params
Reviewed-by: Eliot Courtney <[email protected]>
