Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: IP27: Fix build errors with CONFIG_PCI disabled.

LD init/built-in.o
arch/mips/built-in.o: In function `xtalk_probe_node':
(.cpuinit.text+0x67c): undefined reference to `bridge_probe'
arch/mips/built-in.o: In function `xtalk_probe_node':
(.cpuinit.text+0x7d8): undefined reference to `bridge_probe'

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+9
+9
arch/mips/include/asm/xtalk/xtalk.h
··· 47 47 #define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) 48 48 #define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS)) 49 49 50 + #ifdef CONFIG_PCI 51 + extern int bridge_probe(nasid_t nasid, int widget, int masterwid); 52 + #else 53 + static inline int bridge_probe(nasid_t nasid, int widget, int masterwid) 54 + { 55 + return 0; 56 + } 57 + #endif 58 + 50 59 #endif /* !__ASSEMBLY__ */ 51 60 52 61 #endif /* _ASM_XTALK_XTALK_H */