Skip to contentSkip to conversation

x86/platform/intel-mid: Fix build error without CONFIG_ACPI

PATCH In review YueHaibing 2 participants 3 messages Sep 1, 2020

Subsystems (2)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 x86/platform/intel-mid: Fix build error without CONFIG_ACPI

arch/x86/pci/intel_mid_pci.c: In function ‘intel_mid_pci_init’:
arch/x86/pci/intel_mid_pci.c:303:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
acpi_noirq_set();
^~~~~~~~~~~~~~
acpi_irq_get

Fixes a912a7584ec3 ("x86/platform/intel-mid: Move PCI initialization to arch_init()")
---
 arch/x86/pci/intel_mid_pci.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/pci/intel_mid_pci.c +1 -0
index 00c62115f39c..0aaf31917061 100644
@@ -33,6 +33,7 @@
 #include <asm/hw_irq.h>
 #include <asm/io_apic.h>
 #include <asm/intel-mid.h>
+#include <asm/acpi.h>
 
 #define PCIE_CAP_OFFSET	0x100
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 8 lines · YueHaibing

arch/x86/pci/intel_mid_pci.c: In function ‘intel_mid_pci_init’:
arch/x86/pci/intel_mid_pci.c:303:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
acpi_noirq_set();
^~~~~~~~~~~~~~
acpi_irq_get

Fixes a912a7584ec3 ("x86/platform/intel-mid: Move PCI initialization to arch_init()")

Bjorn has merged my patch (or so his email says), but apparently it's not in linux-next yet.

Quoted 10 lines
---
 arch/x86/pci/intel_mid_pci.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/pci/intel_mid_pci.c +0 -0
index 00c62115f39c..0aaf31917061 100644

arch/x86/pci/intel_mid_pci.c line 39

Quoted 7 lines
arch/x86/pci/intel_mid_pci.c +1 -0
@@ -33,6 +33,7 @@
 #include <asm/hw_irq.h>
 #include <asm/io_apic.h>
 #include <asm/intel-mid.h>
+#include <asm/acpi.h>
 
 #define PCIE_CAP_OFFSET	0x100
 

thanks.

Signature · 1 line
~Randy
author
#2 lore raw
Quoted 7 lines · Randy Dunlap
Quoted 6 lines · YueHaibing

arch/x86/pci/intel_mid_pci.c: In function ‘intel_mid_pci_init’:
arch/x86/pci/intel_mid_pci.c:303:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
acpi_noirq_set();
^~~~~~~~~~~~~~
acpi_irq_get

Quoted 5 lines
Quoted 2 lines
Fixes a912a7584ec3 ("x86/platform/intel-mid: Move PCI initialization to arch_init()")

Bjorn has merged my patch (or so his email says), but apparently it's not in linux-next yet.

Thanks for info.

Quoted 22 lines
Quoted 12 lines

---
 arch/x86/pci/intel_mid_pci.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/pci/intel_mid_pci.c +0 -0
index 00c62115f39c..0aaf31917061 100644

arch/x86/pci/intel_mid_pci.c line 39

Quoted 7 lines
arch/x86/pci/intel_mid_pci.c +1 -0
@@ -33,6 +33,7 @@
 #include <asm/hw_irq.h>
 #include <asm/io_apic.h>
 #include <asm/intel-mid.h>
+#include <asm/acpi.h>
 
 #define PCIE_CAP_OFFSET	0x100
 

thanks.