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:
xuejun-xj 2022-07-11 17:55:04 +08:00
parent 458f6f42f6
commit d2584991eb

View File

@ -63,7 +63,7 @@ pub enum VmError {
/// Cannot setup GIC
#[cfg(target_arch = "aarch64")]
#[error("failed to configure GIC")]
SetupGIC(dbs_arch::gic::Error),
SetupGIC(GICError),
}
/// Configuration information for user defined NUMA nodes.
@ -187,7 +187,7 @@ pub struct Vm {
// Arm specific fields.
// On aarch64 we need to keep around the fd obtained by creating the VGIC device.
#[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"))]
upcall_client: Option<Arc<UpcallClient<DevMgrService>>>,