Skip to content

Commit 78d7d59

Browse files
committed
cleanup: remove unused code from pci and vm-device crates
This is code we are not going to use in Firecracker. Remove it, so we can keep the crates we vend as minimal as possible, including only things we are actually using. Signed-off-by: Babis Chalios <[email protected]>
1 parent 608c9cd commit 78d7d59

File tree

4 files changed

+0
-303
lines changed

4 files changed

+0
-303
lines changed

src/pci/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ extern crate log;
1212
mod bus;
1313
mod configuration;
1414
mod device;
15-
mod msi;
1615
mod msix;
1716

1817
use std::fmt::{self, Debug, Display};
@@ -31,7 +30,6 @@ pub use self::configuration::{
3130
pub use self::device::{
3231
BarReprogrammingParams, DeviceRelocation, Error as PciDeviceError, PciDevice,
3332
};
34-
pub use self::msi::{msi_num_enabled_vectors, MsiCap, MsiConfig};
3533
pub use self::msix::{
3634
Error as MsixError, MsixCap, MsixConfig, MsixConfigState, MsixTableEntry, MSIX_CONFIG_ID,
3735
MSIX_TABLE_ENTRY_SIZE,

src/pci/src/msi.rs

Lines changed: 0 additions & 282 deletions
This file was deleted.

src/vm-device/src/dma_mapping/mod.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/vm-device/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use serde::{Deserialize, Serialize};
1010

1111
mod bus;
12-
pub mod dma_mapping;
1312
pub mod interrupt;
1413

1514
pub use self::bus::{Bus, BusDevice, BusDeviceSync, Error as BusError};

0 commit comments

Comments
 (0)