mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: remove unneeded #[allow(dead_code)]
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
42fc9fd151
commit
6745ff87ef
@@ -82,7 +82,6 @@ const MAX_DOMAINS: usize = 1 << 16;
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuRange32 {
|
struct VirtioIommuRange32 {
|
||||||
start: u32,
|
start: u32,
|
||||||
end: u32,
|
end: u32,
|
||||||
@@ -90,7 +89,6 @@ struct VirtioIommuRange32 {
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuRange64 {
|
struct VirtioIommuRange64 {
|
||||||
start: u64,
|
start: u64,
|
||||||
end: u64,
|
end: u64,
|
||||||
@@ -98,7 +96,6 @@ struct VirtioIommuRange64 {
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuConfig {
|
struct VirtioIommuConfig {
|
||||||
page_size_mask: u64,
|
page_size_mask: u64,
|
||||||
input_range: VirtioIommuRange64,
|
input_range: VirtioIommuRange64,
|
||||||
@@ -138,7 +135,6 @@ const VIRTIO_IOMMU_S_NOMEM: u8 = 8;
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuReqTail {
|
struct VirtioIommuReqTail {
|
||||||
status: u8,
|
status: u8,
|
||||||
_reserved: [u8; 3],
|
_reserved: [u8; 3],
|
||||||
@@ -203,7 +199,6 @@ const VIRTIO_IOMMU_PROBE_T_MASK: u16 = 0xfff;
|
|||||||
/// PROBE request
|
/// PROBE request
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuReqProbe {
|
struct VirtioIommuReqProbe {
|
||||||
endpoint: u32,
|
endpoint: u32,
|
||||||
_reserved: [u64; 8],
|
_reserved: [u64; 8],
|
||||||
@@ -211,7 +206,6 @@ struct VirtioIommuReqProbe {
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuProbeProperty {
|
struct VirtioIommuProbeProperty {
|
||||||
type_: u16,
|
type_: u16,
|
||||||
length: u16,
|
length: u16,
|
||||||
@@ -224,7 +218,6 @@ const VIRTIO_IOMMU_RESV_MEM_T_MSI: u8 = 1;
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[allow(dead_code)]
|
|
||||||
struct VirtioIommuProbeResvMem {
|
struct VirtioIommuProbeResvMem {
|
||||||
subtype: u8,
|
subtype: u8,
|
||||||
_reserved: [u8; 3],
|
_reserved: [u8; 3],
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ enum PciCapabilityType {
|
|||||||
// fields cap_vndr (1 byte) and cap_next (1 byte) defined in the virtio spec.
|
// fields cap_vndr (1 byte) and cap_next (1 byte) defined in the virtio spec.
|
||||||
const VIRTIO_PCI_CAP_OFFSET: usize = 2;
|
const VIRTIO_PCI_CAP_OFFSET: usize = 2;
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[derive(Clone, Copy, Default)]
|
#[derive(Clone, Copy, Default)]
|
||||||
struct VirtioPciCap {
|
struct VirtioPciCap {
|
||||||
@@ -103,7 +102,6 @@ impl VirtioPciCap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[derive(Clone, Copy, Default)]
|
#[derive(Clone, Copy, Default)]
|
||||||
struct VirtioPciNotifyCap {
|
struct VirtioPciNotifyCap {
|
||||||
@@ -147,7 +145,6 @@ impl VirtioPciNotifyCap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[derive(Clone, Copy, Default)]
|
#[derive(Clone, Copy, Default)]
|
||||||
struct VirtioPciCap64 {
|
struct VirtioPciCap64 {
|
||||||
@@ -186,7 +183,6 @@ impl VirtioPciCap64 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[repr(C, packed)]
|
#[repr(C, packed)]
|
||||||
#[derive(Clone, Copy, Default)]
|
#[derive(Clone, Copy, Default)]
|
||||||
struct VirtioPciCfgCap {
|
struct VirtioPciCfgCap {
|
||||||
@@ -237,7 +233,6 @@ struct VirtioPciCfgCapInfo {
|
|||||||
cap: VirtioPciCfgCap,
|
cap: VirtioPciCfgCap,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub enum PciVirtioSubclass {
|
pub enum PciVirtioSubclass {
|
||||||
NonTransitionalBase = 0xff,
|
NonTransitionalBase = 0xff,
|
||||||
|
|||||||
Reference in New Issue
Block a user