summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-01-03 19:46:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-07 13:31:39 +0300
commit7e16820fe538e1d36a3bc5aab42f7d2c9d14d0fe (patch)
tree68e39101afffd949e127968f06fe2ee12d73aa4e /rust/kernel
parent7687c66c18c66d4ccd9949c6f641c0e7b5773483 (diff)
downloadlinux-7e16820fe538e1d36a3bc5aab42f7d2c9d14d0fe.tar.xz
rust: pci: do not depend on CONFIG_PCI_MSI
The PCI abstractions do not actually depend on CONFIG_PCI_MSI; it also breaks drivers that only depend on CONFIG_PCI, hence drop it. While at it, move the module entry to its correct location. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202501030744.4ucqC1cB-lkp@intel.com/ Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions") Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20250103164655.96590-2-dakr@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
index e59250dc6c6e..b7351057ed9c 100644
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@ -58,6 +58,8 @@ pub mod miscdevice;
pub mod net;
pub mod of;
pub mod page;
+#[cfg(CONFIG_PCI)]
+pub mod pci;
pub mod pid_namespace;
pub mod platform;
pub mod prelude;
@@ -84,8 +86,6 @@ pub mod workqueue;
pub use bindings;
pub mod io;
pub use macros;
-#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))]
-pub mod pci;
pub use uapi;
#[doc(hidden)]