Skip to contentSkip to conversation

MIPS: PNX8550: Fix build failures

PATCH In review Thierry Reding 3 participants 4 messages Jan 16, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: PNX8550: Fix build failures

The OHCI support code fails to build because the PCI_BASE and udelay() macros which are defined in pci.h and linux/time.h respectively. Adding corresponding includes fixes these build failures.

---
 arch/mips/pnx8550/common/platform.c | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/pnx8550/common/platform.c +2 -0
index 0a8faea..9782fde 100644
@@ -19,10 +19,12 @@
 #include <linux/resource.h>
 #include <linux/serial.h>
 #include <linux/serial_pnx8xxx.h>
+#include <linux/delay.h>
 #include <linux/platform_device.h>
 #include <linux/usb/ohci_pdriver.h>
 
 #include <int.h>
+#include <pci.h>
 #include <usb.h>
 #include <uart.h>
 
Signature · 1 line
1.8.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Thierry Reding

The OHCI support code fails to build because the PCI_BASE and udelay() macros which are defined in pci.h and linux/time.h respectively. Adding corresponding includes fixes these build failures.

Thanks for fixing this Thierry, I completely missed that when moving the OHCI code to platform.c

Quoted 21 lines
---
  arch/mips/pnx8550/common/platform.c | 2 ++
  1 file changed, 2 insertions(+)
arch/mips/pnx8550/common/platform.c +2 -0
index 0a8faea..9782fde 100644
@@ -19,10 +19,12 @@
  #include <linux/resource.h>
  #include <linux/serial.h>
  #include <linux/serial_pnx8xxx.h>
+#include <linux/delay.h>
  #include <linux/platform_device.h>
  #include <linux/usb/ohci_pdriver.h>
 
  #include <int.h>
+#include <pci.h>
  #include <usb.h>
  #include <uart.h>
 
#2 lore raw
In reply to Thierry Reding
Quoted 4 lines · Thierry Reding

The OHCI support code fails to build because the PCI_BASE and udelay() macros which are defined in pci.h and linux/time.h respectively. Adding

+#include <linux/delay.h>

time.h or delay.h?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw
Quoted 8 lines · Geert Uytterhoeven
Quoted 4 lines · Thierry Reding

The OHCI support code fails to build because the PCI_BASE and udelay() macros which are defined in pci.h and linux/time.h respectively. Adding

+#include <linux/delay.h>

time.h or delay.h?

That'd be delay.h. Can this be fixed up when the patch is committed or shall I resend?

Thierry