Skip to contentSkip to conversation

x86: make setup.c build again

PATCH In review Christoph Hellwig 2 participants 3 messages Sep 1, 2021 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: make setup.c build again

Add a <linux/acpi.h> include to setup.c to ensure it compiles without any config-dependent implicit includes of that header.

---
 arch/x86/kernel/setup.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/setup.c +1 -0
index 63b20536c8d23..6edec9a28293e 100644
@@ -22,6 +22,7 @@
 #include <linux/usb/xhci-dbgp.h>
 #include <linux/static_call.h>
 #include <linux/swiotlb.h>
+#include <linux/acpi.h>
 
 #include <uapi/linux/mount.h>
 
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 14 lines · Christoph Hellwig

Add a <linux/acpi.h> include to setup.c to ensure it compiles without any config-dependent implicit includes of that header.

---
 arch/x86/kernel/setup.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/setup.c +0 -0
index 63b20536c8d23..6edec9a28293e 100644

arch/x86/kernel/setup.c line 28

Quoted 7 lines
arch/x86/kernel/setup.c +1 -0
@@ -22,6 +22,7 @@
 #include <linux/usb/xhci-dbgp.h>
 #include <linux/static_call.h>
 #include <linux/swiotlb.h>
+#include <linux/acpi.h>
 
 #include <uapi/linux/mount.h>
 

There's an identical fix

https://lkml.kernel.org/r/[email protected]

which explains why it happens but I'm fine with whichever one Linus picks up.

Thx.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette