Skip to contentSkip to conversation

x86/cyrix: include header linux/isa-dma.h

PATCH In review Randy Dunlap 3 participants 3 messages Jul 25, 2022 – Jul 26, 2022 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cyrix: include header linux/isa-dma.h

x86/kernel/cpu/cyrix.c now needs to include <linux/isa-dma.h> since the 'isa_dma_bridge_buggy' variable was moved to it.

Fixes this build error:

../arch/x86/kernel/cpu/cyrix.c: In function ‘init_cyrix’:
../arch/x86/kernel/cpu/cyrix.c:277:17: error: ‘isa_dma_bridge_buggy’ undeclared (first use in this function)
277 | isa_dma_bridge_buggy = 2;

Fixes abb4970ac335 ("PCI: Move isa_dma_bridge_buggy out of asm/dma.h")
Cc Stafford Horne <[email protected]>
Cc Bjorn Helgaas <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
---
 arch/x86/kernel/cpu/cyrix.c |    1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/cyrix.c +1 -0
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/isa-dma.h>
 #include <linux/pci.h>
 #include <asm/dma.h>
 #include <linux/io.h>
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Randy Dunlap

x86/kernel/cpu/cyrix.c now needs to include <linux/isa-dma.h> since the 'isa_dma_bridge_buggy' variable was moved to it.

Fixes this build error:

../arch/x86/kernel/cpu/cyrix.c: In function ‘init_cyrix’:
../arch/x86/kernel/cpu/cyrix.c:277:17: error: ‘isa_dma_bridge_buggy’ undeclared (first use in this function)
277 | isa_dma_bridge_buggy = 2;

Quoted 7 lines
Fixes abb4970ac335 ("PCI: Move isa_dma_bridge_buggy out of asm/dma.h")
Cc Stafford Horne <[email protected]>
Cc Bjorn Helgaas <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Quoted 7 lines
---
 arch/x86/kernel/cpu/cyrix.c |    1 +
 1 file changed, 1 insertion(+)

arch/x86/kernel/cpu/cyrix.c line 7

Quoted 7 lines
arch/x86/kernel/cpu/cyrix.c +1 -0
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/isa-dma.h>
 #include <linux/pci.h>
 #include <asm/dma.h>
 #include <linux/io.h>

Sorry, I missed this, I did test several x86 configs, but I guess the cyrix.c compilation was not picked up in my tests.

FWIW, I think this should go through Bjorn's pci tree.

-Stafford

#2 lore raw
In reply to Randy Dunlap
Quoted 11 lines · Randy Dunlap

x86/kernel/cpu/cyrix.c now needs to include <linux/isa-dma.h> since the 'isa_dma_bridge_buggy' variable was moved to it.

Fixes this build error:

../arch/x86/kernel/cpu/cyrix.c: In function ‘init_cyrix’:
../arch/x86/kernel/cpu/cyrix.c:277:17: error: ‘isa_dma_bridge_buggy’ undeclared (first use in this function)
277 | isa_dma_bridge_buggy = 2;

Fixes abb4970ac335 ("PCI: Move isa_dma_bridge_buggy out of asm/dma.h")

I appended this to my pci/header-cleanup-immutable branch for v5.20, thanks!

Quoted 19 lines
Cc Stafford Horne <[email protected]>
Cc Bjorn Helgaas <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
---
 arch/x86/kernel/cpu/cyrix.c |    1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/cyrix.c +1 -0
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/isa-dma.h>
 #include <linux/pci.h>
 #include <asm/dma.h>
 #include <linux/io.h>