diff options
-rw-r--r-- | arch/mips/cavium-octeon/octeon-irq.c | 3 | ||||
-rw-r--r-- | arch/mips/dec/kn01-berr.c | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/dec/kn01.h | 1 | ||||
-rw-r--r-- | arch/mips/oprofile/op_model_loongson2.c | 2 | ||||
-rw-r--r-- | arch/mips/pci/ops-pmcmsp.c | 2 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-nmi.c | 2 | ||||
-rw-r--r-- | arch/mips/sibyte/bcm1480/irq.c | 2 | ||||
-rw-r--r-- | arch/mips/sibyte/sb1250/irq.c | 2 | ||||
-rw-r--r-- | arch/mips/sni/rm200.c | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon/octeon-irq.c index 0bc79dcede26..5070e960adde 100644 --- a/arch/mips/cavium-octeon/octeon-irq.c +++ b/arch/mips/cavium-octeon/octeon-irq.c | |||
@@ -15,7 +15,6 @@ | |||
15 | 15 | ||
16 | DEFINE_RWLOCK(octeon_irq_ciu0_rwlock); | 16 | DEFINE_RWLOCK(octeon_irq_ciu0_rwlock); |
17 | DEFINE_RWLOCK(octeon_irq_ciu1_rwlock); | 17 | DEFINE_RWLOCK(octeon_irq_ciu1_rwlock); |
18 | DEFINE_SPINLOCK(octeon_irq_msi_lock); | ||
19 | 18 | ||
20 | static int octeon_coreid_for_cpu(int cpu) | 19 | static int octeon_coreid_for_cpu(int cpu) |
21 | { | 20 | { |
@@ -545,6 +544,8 @@ static struct irq_chip octeon_irq_chip_ciu1 = { | |||
545 | 544 | ||
546 | #ifdef CONFIG_PCI_MSI | 545 | #ifdef CONFIG_PCI_MSI |
547 | 546 | ||
547 | static DEFINE_SPINLOCK(octeon_irq_msi_lock); | ||
548 | |||
548 | static void octeon_irq_msi_ack(unsigned int irq) | 549 | static void octeon_irq_msi_ack(unsigned int irq) |
549 | { | 550 | { |
550 | if (!octeon_has_feature(OCTEON_FEATURE_PCIE)) { | 551 | if (!octeon_has_feature(OCTEON_FEATURE_PCIE)) { |
diff --git a/arch/mips/dec/kn01-berr.c b/arch/mips/dec/kn01-berr.c index b0dc6d53edd6..b9bdc6f8ba7f 100644 --- a/arch/mips/dec/kn01-berr.c +++ b/arch/mips/dec/kn01-berr.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * There is no default value -- it has to be initialized. | 46 | * There is no default value -- it has to be initialized. |
47 | */ | 47 | */ |
48 | u16 cached_kn01_csr; | 48 | u16 cached_kn01_csr; |
49 | DEFINE_SPINLOCK(kn01_lock); | 49 | static DEFINE_SPINLOCK(kn01_lock); |
50 | 50 | ||
51 | 51 | ||
52 | static inline void dec_kn01_be_ack(void) | 52 | static inline void dec_kn01_be_ack(void) |
diff --git a/arch/mips/include/asm/dec/kn01.h b/arch/mips/include/asm/dec/kn01.h index 28fa717ac423..88d9ffd74258 100644 --- a/arch/mips/include/asm/dec/kn01.h +++ b/arch/mips/include/asm/dec/kn01.h | |||
@@ -80,7 +80,6 @@ | |||
80 | struct pt_regs; | 80 | struct pt_regs; |
81 | 81 | ||
82 | extern u16 cached_kn01_csr; | 82 | extern u16 cached_kn01_csr; |
83 | extern spinlock_t kn01_lock; | ||
84 | 83 | ||
85 | extern void dec_kn01_be_init(void); | 84 | extern void dec_kn01_be_init(void); |
86 | extern int dec_kn01_be_handler(struct pt_regs *regs, int is_fixup); | 85 | extern int dec_kn01_be_handler(struct pt_regs *regs, int is_fixup); |
diff --git a/arch/mips/oprofile/op_model_loongson2.c b/arch/mips/oprofile/op_model_loongson2.c index c25fb9b2073e..f7f9a32c722a 100644 --- a/arch/mips/oprofile/op_model_loongson2.c +++ b/arch/mips/oprofile/op_model_loongson2.c | |||
@@ -47,7 +47,7 @@ static struct loongson2_register_config { | |||
47 | int cnt1_enabled, cnt2_enabled; | 47 | int cnt1_enabled, cnt2_enabled; |
48 | } reg; | 48 | } reg; |
49 | 49 | ||
50 | DEFINE_SPINLOCK(sample_lock); | 50 | static DEFINE_SPINLOCK(sample_lock); |
51 | 51 | ||
52 | static char *oprofid = "LoongsonPerf"; | 52 | static char *oprofid = "LoongsonPerf"; |
53 | static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id); | 53 | static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id); |
diff --git a/arch/mips/pci/ops-pmcmsp.c b/arch/mips/pci/ops-pmcmsp.c index 32548b5d68d6..04b31478a6d7 100644 --- a/arch/mips/pci/ops-pmcmsp.c +++ b/arch/mips/pci/ops-pmcmsp.c | |||
@@ -206,7 +206,7 @@ static void pci_proc_init(void) | |||
206 | } | 206 | } |
207 | #endif /* CONFIG_PROC_FS && PCI_COUNTERS */ | 207 | #endif /* CONFIG_PROC_FS && PCI_COUNTERS */ |
208 | 208 | ||
209 | DEFINE_SPINLOCK(bpci_lock); | 209 | static DEFINE_SPINLOCK(bpci_lock); |
210 | 210 | ||
211 | /***************************************************************************** | 211 | /***************************************************************************** |
212 | * | 212 | * |
diff --git a/arch/mips/sgi-ip27/ip27-nmi.c b/arch/mips/sgi-ip27/ip27-nmi.c index 6c5a630566f9..8682784abfcf 100644 --- a/arch/mips/sgi-ip27/ip27-nmi.c +++ b/arch/mips/sgi-ip27/ip27-nmi.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | typedef unsigned long machreg_t; | 22 | typedef unsigned long machreg_t; |
23 | 23 | ||
24 | DEFINE_SPINLOCK(nmi_lock); | 24 | static DEFINE_SPINLOCK(nmi_lock); |
25 | 25 | ||
26 | /* | 26 | /* |
27 | * Lets see what else we need to do here. Set up sp, gp? | 27 | * Lets see what else we need to do here. Set up sp, gp? |
diff --git a/arch/mips/sibyte/bcm1480/irq.c b/arch/mips/sibyte/bcm1480/irq.c index 4070268aa769..fbea5e65c7ac 100644 --- a/arch/mips/sibyte/bcm1480/irq.c +++ b/arch/mips/sibyte/bcm1480/irq.c | |||
@@ -73,7 +73,7 @@ static struct irq_chip bcm1480_irq_type = { | |||
73 | /* Store the CPU id (not the logical number) */ | 73 | /* Store the CPU id (not the logical number) */ |
74 | int bcm1480_irq_owner[BCM1480_NR_IRQS]; | 74 | int bcm1480_irq_owner[BCM1480_NR_IRQS]; |
75 | 75 | ||
76 | DEFINE_SPINLOCK(bcm1480_imr_lock); | 76 | static DEFINE_SPINLOCK(bcm1480_imr_lock); |
77 | 77 | ||
78 | void bcm1480_mask_irq(int cpu, int irq) | 78 | void bcm1480_mask_irq(int cpu, int irq) |
79 | { | 79 | { |
diff --git a/arch/mips/sibyte/sb1250/irq.c b/arch/mips/sibyte/sb1250/irq.c index 5e7f2016cceb..5dae2ecb83ff 100644 --- a/arch/mips/sibyte/sb1250/irq.c +++ b/arch/mips/sibyte/sb1250/irq.c | |||
@@ -72,7 +72,7 @@ static struct irq_chip sb1250_irq_type = { | |||
72 | /* Store the CPU id (not the logical number) */ | 72 | /* Store the CPU id (not the logical number) */ |
73 | int sb1250_irq_owner[SB1250_NR_IRQS]; | 73 | int sb1250_irq_owner[SB1250_NR_IRQS]; |
74 | 74 | ||
75 | DEFINE_SPINLOCK(sb1250_imr_lock); | 75 | static DEFINE_SPINLOCK(sb1250_imr_lock); |
76 | 76 | ||
77 | void sb1250_mask_irq(int cpu, int irq) | 77 | void sb1250_mask_irq(int cpu, int irq) |
78 | { | 78 | { |
diff --git a/arch/mips/sni/rm200.c b/arch/mips/sni/rm200.c index 31e2583ec622..c4778e47efa4 100644 --- a/arch/mips/sni/rm200.c +++ b/arch/mips/sni/rm200.c | |||
@@ -132,7 +132,7 @@ device_initcall(snirm_setup_devinit); | |||
132 | * readb/writeb to access them | 132 | * readb/writeb to access them |
133 | */ | 133 | */ |
134 | 134 | ||
135 | DEFINE_SPINLOCK(sni_rm200_i8259A_lock); | 135 | static DEFINE_SPINLOCK(sni_rm200_i8259A_lock); |
136 | #define PIC_CMD 0x00 | 136 | #define PIC_CMD 0x00 |
137 | #define PIC_IMR 0x01 | 137 | #define PIC_IMR 0x01 |
138 | #define PIC_ISR PIC_CMD | 138 | #define PIC_ISR PIC_CMD |