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

[MIPS] malta_int.c: make 4 variables static

The following variables defined in arch/mips/mips-boards/malta/malta_int.c
can become static: msc_irqmap[], msc_nr_irqs, msc_eicirqmap[], and
msc_nr_eicirqs. This patch makes them static.

Successfully build-tested using default configs for Malta, Atlas
and SEAD boards.

Runtime test successfully performed by booting the Malta 4Kc board
up to the shell prompt.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Dmitri Vorobiev and committed by
Ralf Baechle
b57c1913 52d65cf8

+4 -4
+4 -4
arch/mips/mips-boards/malta/malta_int.c
··· 342 342 .name = "CoreHi" 343 343 }; 344 344 345 - msc_irqmap_t __initdata msc_irqmap[] = { 345 + static msc_irqmap_t __initdata msc_irqmap[] = { 346 346 {MSC01C_INT_TMR, MSC01_IRQ_EDGE, 0}, 347 347 {MSC01C_INT_PCI, MSC01_IRQ_LEVEL, 0}, 348 348 }; 349 - int __initdata msc_nr_irqs = ARRAY_SIZE(msc_irqmap); 349 + static int __initdata msc_nr_irqs = ARRAY_SIZE(msc_irqmap); 350 350 351 - msc_irqmap_t __initdata msc_eicirqmap[] = { 351 + static msc_irqmap_t __initdata msc_eicirqmap[] = { 352 352 {MSC01E_INT_SW0, MSC01_IRQ_LEVEL, 0}, 353 353 {MSC01E_INT_SW1, MSC01_IRQ_LEVEL, 0}, 354 354 {MSC01E_INT_I8259A, MSC01_IRQ_LEVEL, 0}, ··· 361 361 {MSC01E_INT_CPUCTR, MSC01_IRQ_LEVEL, 0} 362 362 }; 363 363 364 - int __initdata msc_nr_eicirqs = ARRAY_SIZE(msc_eicirqmap); 364 + static int __initdata msc_nr_eicirqs = ARRAY_SIZE(msc_eicirqmap); 365 365 366 366 /* 367 367 * This GIC specific tabular array defines the association between External