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

MIPS: SNI: pcit: Fix build error with CONFIG_PCI=n disabled.

CC arch/mips/sni/pcit.o
arch/mips/sni/pcit.c:150:30: warning: ‘sni_pcit_controller’ defined but not used [-Wunused-variable]

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

+9 -7
+9 -7
arch/mips/sni/pcit.c
··· 128 128 } 129 129 }; 130 130 131 - static struct resource sni_mem_resource = { 132 - .start = 0x18000000UL, 133 - .end = 0x1fbfffffUL, 134 - .name = "PCIT PCI MEM", 135 - .flags = IORESOURCE_MEM 136 - }; 137 - 138 131 static void __init sni_pcit_resource_init(void) 139 132 { 140 133 int i; ··· 140 147 141 148 extern struct pci_ops sni_pcit_ops; 142 149 150 + #ifdef CONFIG_PCI 151 + static struct resource sni_mem_resource = { 152 + .start = 0x18000000UL, 153 + .end = 0x1fbfffffUL, 154 + .name = "PCIT PCI MEM", 155 + .flags = IORESOURCE_MEM 156 + }; 157 + 143 158 static struct pci_controller sni_pcit_controller = { 144 159 .pci_ops = &sni_pcit_ops, 145 160 .mem_resource = &sni_mem_resource, ··· 156 155 .io_offset = 0x00000000UL, 157 156 .io_map_base = SNI_PORT_BASE 158 157 }; 158 + #endif /* CONFIG_PCI */ 159 159 160 160 static void enable_pcit_irq(struct irq_data *d) 161 161 {