misc: pci: drop extern crate, use modern rust

This commit is part of a series of similar commits.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster
2025-09-05 09:20:46 +02:00
committed by Rob Bradford
parent 492f24c632
commit 6f4b5253b4
7 changed files with 6 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ use std::ops::DerefMut;
use std::sync::{Arc, Barrier, Mutex};
use byteorder::{ByteOrder, LittleEndian};
use log::error;
use thiserror::Error;
use vm_device::{Bus, BusDevice, BusDeviceSync};

View File

@@ -7,6 +7,7 @@
use std::sync::{Arc, Mutex};
use byteorder::{ByteOrder, LittleEndian};
use log::{info, warn};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use vm_device::PciBarType;

View File

@@ -5,8 +5,6 @@
// SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
//! Implements pci devices and busses.
#[macro_use]
extern crate log;
mod bus;
mod configuration;

View File

@@ -7,6 +7,7 @@ use std::io;
use std::sync::Arc;
use byteorder::{ByteOrder, LittleEndian};
use log::error;
use serde::{Deserialize, Serialize};
use thiserror::Error;
use vm_device::interrupt::{

View File

@@ -7,6 +7,7 @@ use std::sync::Arc;
use std::{io, result};
use byteorder::{ByteOrder, LittleEndian};
use log::{debug, error};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use vm_device::interrupt::{

View File

@@ -15,6 +15,7 @@ use anyhow::anyhow;
use byteorder::{ByteOrder, LittleEndian};
use hypervisor::HypervisorVmError;
use libc::{_SC_PAGESIZE, sysconf};
use log::{error, info};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use vfio_bindings::bindings::vfio::*;

View File

@@ -9,6 +9,7 @@ use std::os::unix::prelude::AsRawFd;
use std::sync::{Arc, Barrier, Mutex};
use hypervisor::HypervisorVmError;
use log::{error, info};
use thiserror::Error;
use vfio_bindings::bindings::vfio::*;
use vfio_ioctls::VfioIrq;