Skip to content

Commit

Permalink
rust: pci: do not depend on CONFIG_PCI_MSI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Danilo Krummrich committed Jan 14, 2025
1 parent ac240cf commit b6af49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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;
Expand All @@ -87,8 +89,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;

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

0 comments on commit b6af49d

Please sign in to comment.