Skip to contentSkip to conversation

MIPS: pci: pci-bcm1480: Include missing vt.h header

PATCH In review Markos Chandras 2 participants 2 messages Sep 19, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: pci: pci-bcm1480: Include missing vt.h header

It's needed for the MAX_NR_CONSOLES macro.

Fixes the following build problem on a randconfig:

arch/mips/pci/pci-bcm1480.c: In function 'bcm1480_pcibios_init':
arch/mips/pci/pci-bcm1480.c:261:36: error: 'MAX_NR_CONSOLES' undeclared (first use in this function) arch/mips/pci/pci-bcm1480.c:261:36: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [arch/mips/pci/pci-bcm1480.o] Error 1

---
This patch is for the upstream-sfr/mips-for-linux-next tree

---
 arch/mips/pci/pci-bcm1480.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/pci/pci-bcm1480.c +1 -0
index 44dd5aa..5ec2a7b 100644
@@ -39,6 +39,7 @@
 #include <linux/mm.h>
 #include <linux/console.h>
 #include <linux/tty.h>
+#include <linux/vt.h>
 
 #include <asm/sibyte/bcm1480_regs.h>
 #include <asm/sibyte/bcm1480_scd.h>
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 4 lines · Markos Chandras

It's needed for the MAX_NR_CONSOLES macro.

Fixes the following build problem on a randconfig:

Quoted 8 lines

arch/mips/pci/pci-bcm1480.c: In function 'bcm1480_pcibios_init':
arch/mips/pci/pci-bcm1480.c:261:36: error: 'MAX_NR_CONSOLES' undeclared (first use in this function) arch/mips/pci/pci-bcm1480.c:261:36: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [arch/mips/pci/pci-bcm1480.o] Error 1

I'm wondering if this *really* has to live in the PCI code. A VGA in legacy mode should even work with CONFIG_PCI=n, right?

Anyway, applied. Thanks!

Ralf