hypervisor: replace #[allow(dead_code)] with expect()

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-03 14:36:12 +02:00
committed by Rob Bradford
parent 9a60472ace
commit 179d56ca72
2 changed files with 7 additions and 2 deletions

View File

@@ -562,10 +562,12 @@ struct KvmDirtyLogSlot {
guest_memfd: u32,
}
#[allow(dead_code)]
struct KvmMemorySlot {
#[cfg_attr(not(feature = "sev_snp"), expect(dead_code))]
guest_memfd: OwnedFd,
#[cfg_attr(not(feature = "sev_snp"), expect(dead_code))]
guest_phys_addr: u64,
#[cfg_attr(not(feature = "sev_snp"), expect(dead_code))]
memory_size: u64,
}