Skip to content

Commit

Permalink
PCI / ACPI: Fix build issue in pci_root.c for !CONFIG_PCIEPORTBUS
Browse files Browse the repository at this point in the history
The compilation of drivers/acpi/pci_root.c fails if
CONFIG_PCIEPORTBUS is unset.  Fix the problem.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Markus Trippelsdorf authored and Linus Torvalds committed Jan 14, 2011
1 parent 9a1fe2f commit ab0724f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,13 @@ extern void pci_restore_msi_state(struct pci_dev *dev);
extern int pci_msi_enabled(void);
#endif

#ifdef CONFIG_PCIEPORTBUS
extern bool pcie_ports_disabled;
extern bool pcie_ports_auto;
#else
#define pcie_ports_disabled true
#define pcie_ports_auto false
#endif

#ifndef CONFIG_PCIEASPM
static inline int pcie_aspm_enabled(void)
Expand Down

0 comments on commit ab0724f

Please sign in to comment.