diff --git a/common/src/io.rs b/common/src/io.rs index 698b23fb02..b79d4cabe8 100644 --- a/common/src/io.rs +++ b/common/src/io.rs @@ -4,9 +4,11 @@ use core::{ }; mod mmio; +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] mod pio; pub use mmio::*; +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub use pio::*; /// IO abstraction diff --git a/common/src/io/mmio.rs b/common/src/io/mmio.rs index ca9d564ce2..c20cf52716 100644 --- a/common/src/io/mmio.rs +++ b/common/src/io/mmio.rs @@ -35,7 +35,7 @@ impl Mmio { #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))] impl Io for Mmio where - T: Copy + PartialEq + BitAnd + BitOr + Not, + T: Copy + PartialEq + core::ops::BitAnd + core::ops::BitOr + core::ops::Not, { type Value = T;