mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
9a60472ace
commit
179d56ca72
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user