MIPS: PNX8550: Fix build failures
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
@@ -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
Quoted 5 lines · Thierry Reding
The OHCI support code fails to build because the
PCI_BASEandudelay()macros which are defined inpci.handlinux/time.hrespectively. Adding corresponding includes fixes these build failures.Signed-off-by Thierry Reding <[email protected]>
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@@ -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>
Quoted 4 lines · Thierry Reding
The OHCI support code fails to build because the
PCI_BASEandudelay()macros which are defined inpci.handlinux/time.hrespectively. 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
Quoted 8 lines · Geert Uytterhoeven
Quoted 4 lines · Thierry Reding
The OHCI support code fails to build because the
PCI_BASEandudelay()macros which are defined inpci.handlinux/time.hrespectively. Adding+#include <
linux/delay.h>
time.hordelay.h?
That'd be delay.h. Can this be fixed up when the patch is committed or shall I resend?
Thierry