Skip to contentSkip to conversation

mips DMA buildbot fixes

PATCH In review Christoph Hellwig 4 participants 7 messages Mar 1, 2021 – Mar 3, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Thomas,

this series fixes a few trivial warnings in the mips DMA code that the buildbot keeps complaining about.

#1 lore raw

PATCH 1/3 MIPS: pci-ar2315: include <linux/dma-direct.h> for phys_to_dma

Ensure this file has a prototype for phys_to_dma and dma_to_phys.

---
 arch/mips/pci/pci-ar2315.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/pci/pci-ar2315.c +1 -0
index f741b8c528e480..c1a655aee599a1 100644
@@ -31,6 +31,7 @@
 #include <linux/platform_device.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/dma-direct.h>
 #include <linux/mm.h>
 #include <linux/delay.h>
 #include <linux/bitops.h>
Signature · 1 line
2.29.2
#2 lore raw

PATCH 2/3 MIPS: bmips: include <linux/dma-direct.h> for phys_to_dma

In reply to Christoph Hellwig

Ensure this file has a prototype for phys_to_dma and dma_to_phys.

---
 arch/mips/bmips/dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/bmips/dma.c +1 -1
index 49061b870680b9..915ce4b189c15b 100644
@@ -10,7 +10,7 @@
 
 #include <linux/device.h>
 #include <linux/dma-direction.h>
-#include <linux/dma-mapping.h>
+#include <linux/dma-direct.h>
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/of.h>
Signature · 1 line
2.29.2
#5 lore raw

PATCH 3/3 MIPS: force CONFIG_PCI to on for IP27 and IP30

In reply to Christoph Hellwig

These are PCI based systems, so not enabling the support is rather pointless. Additionally the random configѕ generated by the build bot for IP27 and IP30 builds without PCI fail to buіld.

---
 arch/mips/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/Kconfig +2 -0
index d89efba3d8a44a..cc7494e988e2fa 100644
@@ -712,6 +712,7 @@ config SGI_IP27
 	select ARC_CMDLINE_ONLY
 	select BOOT_ELF64
 	select DEFAULT_SGI_PARTITION
+	select FORCE_PCI
 	select SYS_HAS_EARLY_PRINTK
 	select HAVE_PCI
 	select IRQ_MIPS_CPU
@@ -774,6 +775,7 @@ config SGI_IP30
 	select BOOT_ELF64
 	select CEVT_R4K
 	select CSRC_R4K
+	select FORCE_PCI
 	select SYNC_R4K if SMP
 	select ZONE_DMA32
 	select HAVE_PCI
Signature · 1 line
2.29.2
#6 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

Hi Thomas,

this series fixes a few trivial warnings in the mips DMA code that the buildbot keeps complaining about.

series applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]