Skip to content

Commit b6af49d

Browse files
author
Danilo Krummrich
committed
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: 3a9c091 ("rust: pci: add basic PCI device / driver abstractions") Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent ac240cf commit b6af49d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/kernel/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ pub mod miscdevice;
6161
pub mod net;
6262
pub mod of;
6363
pub mod page;
64+
#[cfg(CONFIG_PCI)]
65+
pub mod pci;
6466
pub mod pid_namespace;
6567
pub mod platform;
6668
pub mod prelude;
@@ -87,8 +89,6 @@ pub mod workqueue;
8789
pub use bindings;
8890
pub mod io;
8991
pub use macros;
90-
#[cfg(all(CONFIG_PCI, CONFIG_PCI_MSI))]
91-
pub mod pci;
9292
pub use uapi;
9393

9494
/// Prefix to appear before log messages printed from within the `kernel` crate.

0 commit comments

Comments
 (0)