mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-01 21:24:36 +00:00
dragonball: fix dependency unused warning
Fix the warning "unused import: `dbs_arch::gic::Error as GICError`" and "unused import: `dbs_arch::gic::GICDevice`" in file src/vm/mod.rs when compiling. Fixes: #4544 Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com> Signed-off-by: jingshan <jingshan@linux.alibaba.com>
This commit is contained in:
parent
458f6f42f6
commit
d2584991eb
@ -63,7 +63,7 @@ pub enum VmError {
|
|||||||
/// Cannot setup GIC
|
/// Cannot setup GIC
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
#[error("failed to configure GIC")]
|
#[error("failed to configure GIC")]
|
||||||
SetupGIC(dbs_arch::gic::Error),
|
SetupGIC(GICError),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configuration information for user defined NUMA nodes.
|
/// Configuration information for user defined NUMA nodes.
|
||||||
@ -187,7 +187,7 @@ pub struct Vm {
|
|||||||
// Arm specific fields.
|
// Arm specific fields.
|
||||||
// On aarch64 we need to keep around the fd obtained by creating the VGIC device.
|
// On aarch64 we need to keep around the fd obtained by creating the VGIC device.
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
irqchip_handle: Option<Box<dyn dbs_arch::gic::GICDevice>>,
|
irqchip_handle: Option<Box<dyn GICDevice>>,
|
||||||
|
|
||||||
#[cfg(all(feature = "hotplug", feature = "dbs-upcall"))]
|
#[cfg(all(feature = "hotplug", feature = "dbs-upcall"))]
|
||||||
upcall_client: Option<Arc<UpcallClient<DevMgrService>>>,
|
upcall_client: Option<Arc<UpcallClient<DevMgrService>>>,
|
||||||
|
Loading…
Reference in New Issue
Block a user