From 2e951c537cf5bc64743a4c072b693ca99b539847 Mon Sep 17 00:00:00 2001 From: Andreas Hindborg Date: Fri, 16 Feb 2024 20:19:19 +0100 Subject: [PATCH] rust: pci: Fix a build system bug when PCI_MSI is not enabled When enabling PCI without PCI_MSI, Rust pci code would fail to build. Fix this by requiring both PCI and PCI_MSI to build Rust pci abstractions. Reported-by: Philipp Stanner Signed-off-by: Andreas Hindborg --- rust/kernel/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;