projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a1fe2f
)
PCI / ACPI: Fix build issue in pci_root.c for !CONFIG_PCIEPORTBUS
author
Markus Trippelsdorf
<markus@trippelsdorf.de>
Fri, 14 Jan 2011 23:07:22 +0000
(
00:07
+0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 14 Jan 2011 23:23:25 +0000
(15:23 -0800)
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>
include/linux/pci.h
patch
|
blob
|
history
diff --git
a/include/linux/pci.h
b/include/linux/pci.h
index 9e67dcd054c4eda86c4957ec173fce9388eb4d54..559d028970752672cc92260eb7b64c61276f5e89 100644
(file)
--- a/
include/linux/pci.h
+++ b/
include/linux/pci.h
@@
-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)