From 2cf1840b0fa7637b6731fd554529f8d57ea34c04 Mon Sep 17 00:00:00 2001 From: Eliot Courtney Date: Mon, 25 May 2026 22:57:40 +0900 Subject: [PATCH] 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 --- drivers/gpu/nova-core/vbios.rs | 4 ---- 1 file changed, 4 deletions(-) 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 @@ fn new(dev: &device::Device, data: &[u8]) -> Result { data_copy.extend_from_slice(data, GFP_KERNEL)?; Ok(BiosImage { - rom_header, pcir, npde, data: data_copy,