diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index ef891088ca6d61..19a910c731e361 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -62,7 +62,7 @@ pub mod workqueue; #[doc(hidden)] pub use bindings; pub use macros; -#[cfg(CONFIG_PCI)] +#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))] pub mod pci; pub use uapi;