From: Eliot Courtney Date: Mon, 25 May 2026 13:57:40 +0000 (+0900) Subject: gpu: nova-core: vbios: remove unused rom_header field X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2cf1840b0fa7637b6731fd554529f8d57ea34c04;p=thirdparty%2Flinux.git gpu: nova-core: vbios: remove unused rom_header field This is only used during construction, so we can remove it. Signed-off-by: Eliot Courtney Link: https://patch.msgid.link/20260525-fix-vbios-v5-22-e5e455251537@nvidia.com Signed-off-by: Danilo Krummrich --- diff --git a/drivers/gpu/nova-core/vbios.rs b/drivers/gpu/nova-core/vbios.rs index b14f9ebdc68f..c0bc1008ed75 100644 --- a/drivers/gpu/nova-core/vbios.rs +++ b/drivers/gpu/nova-core/vbios.rs @@ -663,9 +663,6 @@ pub(crate) struct FwSecBiosImage { /// /// A BiosImage struct is embedded into all image types and implements common operations. struct BiosImage { - /// PCI ROM Expansion Header - #[expect(dead_code)] - rom_header: PciRomHeader, /// PCI Data Structure pcir: PcirStruct, /// NVIDIA PCI Data Extension (optional) @@ -741,7 +738,6 @@ impl BiosImage { data_copy.extend_from_slice(data, GFP_KERNEL)?; Ok(BiosImage { - rom_header, pcir, npde, data: data_copy,