mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Cleanup warning from "pci" feature only build
Mark exit_evt with an underscore it may be unused (it is ignored if the "acpi" feature is not turned on.) Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
3567206059
commit
7358144f09
@@ -299,7 +299,7 @@ impl DeviceManager {
|
|||||||
msi_capable: bool,
|
msi_capable: bool,
|
||||||
userspace_ioapic: bool,
|
userspace_ioapic: bool,
|
||||||
mut mem_slots: u32,
|
mut mem_slots: u32,
|
||||||
exit_evt: &EventFd,
|
_exit_evt: &EventFd,
|
||||||
reset_evt: &EventFd,
|
reset_evt: &EventFd,
|
||||||
) -> DeviceManagerResult<Self> {
|
) -> DeviceManagerResult<Self> {
|
||||||
let mut io_bus = devices::Bus::new();
|
let mut io_bus = devices::Bus::new();
|
||||||
@@ -362,7 +362,7 @@ impl DeviceManager {
|
|||||||
|
|
||||||
#[cfg(feature = "acpi")]
|
#[cfg(feature = "acpi")]
|
||||||
let acpi_device = Arc::new(Mutex::new(devices::AcpiShutdownDevice::new(
|
let acpi_device = Arc::new(Mutex::new(devices::AcpiShutdownDevice::new(
|
||||||
exit_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
|
_exit_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
|
||||||
reset_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
|
reset_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
|
||||||
)));
|
)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user