mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
fuzz: fix unused import warnings
Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
parent
a511dd1b18
commit
9d5dfa879b
@ -6,8 +6,6 @@
|
|||||||
use devices::legacy::Cmos;
|
use devices::legacy::Cmos;
|
||||||
use libc::EFD_NONBLOCK;
|
use libc::EFD_NONBLOCK;
|
||||||
use libfuzzer_sys::fuzz_target;
|
use libfuzzer_sys::fuzz_target;
|
||||||
use std::sync::atomic::AtomicBool;
|
|
||||||
use std::sync::Arc;
|
|
||||||
use vm_device::BusDevice;
|
use vm_device::BusDevice;
|
||||||
use vmm_sys_util::eventfd::EventFd;
|
use vmm_sys_util::eventfd::EventFd;
|
||||||
|
|
||||||
|
@ -16,11 +16,12 @@ use crate::thread_helper::spawn_virtio_thread;
|
|||||||
use crate::GuestMemoryMmap;
|
use crate::GuestMemoryMmap;
|
||||||
use crate::VirtioInterrupt;
|
use crate::VirtioInterrupt;
|
||||||
use anyhow::anyhow;
|
use anyhow::anyhow;
|
||||||
|
#[cfg(not(fuzzing))]
|
||||||
|
use net_util::virtio_features_to_tap_offload;
|
||||||
use net_util::CtrlQueue;
|
use net_util::CtrlQueue;
|
||||||
use net_util::{
|
use net_util::{
|
||||||
build_net_config_space, build_net_config_space_with_mq, open_tap,
|
build_net_config_space, build_net_config_space_with_mq, open_tap, MacAddr, NetCounters,
|
||||||
virtio_features_to_tap_offload, MacAddr, NetCounters, NetQueuePair, OpenTapError, RxVirtio,
|
NetQueuePair, OpenTapError, RxVirtio, Tap, TapError, TxVirtio, VirtioNetConfig,
|
||||||
Tap, TapError, TxVirtio, VirtioNetConfig,
|
|
||||||
};
|
};
|
||||||
use seccompiler::SeccompAction;
|
use seccompiler::SeccompAction;
|
||||||
use std::net::Ipv4Addr;
|
use std::net::Ipv4Addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user