From d2584991eb9d133312d6dd86fee56d553a8bd398 Mon Sep 17 00:00:00 2001 From: xuejun-xj Date: Mon, 11 Jul 2022 17:55:04 +0800 Subject: [PATCH] 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 Signed-off-by: jingshan --- src/dragonball/src/vm/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dragonball/src/vm/mod.rs b/src/dragonball/src/vm/mod.rs index e372af51e9..e8c6d6446e 100644 --- a/src/dragonball/src/vm/mod.rs +++ b/src/dragonball/src/vm/mod.rs @@ -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>, + irqchip_handle: Option>, #[cfg(all(feature = "hotplug", feature = "dbs-upcall"))] upcall_client: Option>>,