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

MIPS: GIC: move GIC interrupt bitmap declarations

Several bitmaps are declared in arch/mips/include/asm/gic.h, but the
scope of their use is limited to arch/mips/kernel/irq-gic.c. Move the
declarations from the header file to the C file.

Signed-off-by: Jeffrey Deans <jeffrey.deans@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7372/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Jeffrey Deans and committed by
Ralf Baechle
822350bc 6575b1d4

+12 -12
-12
arch/mips/include/asm/gic.h
··· 306 306 GICWRITE(GIC_REG_ADDR(SHARED, GIC_SH_MAP_TO_VPE_REG_OFF(intr, vpe)), \ 307 307 GIC_SH_MAP_TO_VPE_REG_BIT(vpe)) 308 308 309 - struct gic_pcpu_mask { 310 - DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS); 311 - }; 312 - 313 - struct gic_pending_regs { 314 - DECLARE_BITMAP(pending, GIC_NUM_INTRS); 315 - }; 316 - 317 - struct gic_intrmask_regs { 318 - DECLARE_BITMAP(intrmask, GIC_NUM_INTRS); 319 - }; 320 - 321 309 /* 322 310 * Interrupt Meta-data specification. The ipiflag helps 323 311 * in building ipi_map.
+12
arch/mips/kernel/irq-gic.c
··· 28 28 /* The index into this array is the vector # of the interrupt. */ 29 29 struct gic_shared_intr_map gic_shared_intr_map[GIC_NUM_INTRS]; 30 30 31 + struct gic_pcpu_mask { 32 + DECLARE_BITMAP(pcpu_mask, GIC_NUM_INTRS); 33 + }; 34 + 35 + struct gic_pending_regs { 36 + DECLARE_BITMAP(pending, GIC_NUM_INTRS); 37 + }; 38 + 39 + struct gic_intrmask_regs { 40 + DECLARE_BITMAP(intrmask, GIC_NUM_INTRS); 41 + }; 42 + 31 43 static struct gic_pcpu_mask pcpu_masks[NR_CPUS]; 32 44 static struct gic_pending_regs pending_regs[NR_CPUS]; 33 45 static struct gic_intrmask_regs intrmask_regs[NR_CPUS];