Skip to content

Commit 4a8a738

Browse files
committed
MIPS: Make various locks static.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 559e25a commit 4a8a738

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎arch/mips/cavium-octeon/octeon-irq.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
DEFINE_RWLOCK(octeon_irq_ciu0_rwlock);
1717
DEFINE_RWLOCK(octeon_irq_ciu1_rwlock);
18-
DEFINE_SPINLOCK(octeon_irq_msi_lock);
1918

2019
static int octeon_coreid_for_cpu(int cpu)
2120
{
@@ -545,6 +544,8 @@ static struct irq_chip octeon_irq_chip_ciu1 = {
545544

546545
#ifdef CONFIG_PCI_MSI
547546

547+
static DEFINE_SPINLOCK(octeon_irq_msi_lock);
548+
548549
static void octeon_irq_msi_ack(unsigned int irq)
549550
{
550551
if (!octeon_has_feature(OCTEON_FEATURE_PCIE)) {

‎arch/mips/dec/kn01-berr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* There is no default value -- it has to be initialized.
4747
*/
4848
u16 cached_kn01_csr;
49-
DEFINE_SPINLOCK(kn01_lock);
49+
static DEFINE_SPINLOCK(kn01_lock);
5050

5151

5252
static inline void dec_kn01_be_ack(void)

‎arch/mips/include/asm/dec/kn01.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
struct pt_regs;
8181

8282
extern u16 cached_kn01_csr;
83-
extern spinlock_t kn01_lock;
8483

8584
extern void dec_kn01_be_init(void);
8685
extern int dec_kn01_be_handler(struct pt_regs *regs, int is_fixup);

‎arch/mips/oprofile/op_model_loongson2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static struct loongson2_register_config {
4747
int cnt1_enabled, cnt2_enabled;
4848
} reg;
4949

50-
DEFINE_SPINLOCK(sample_lock);
50+
static DEFINE_SPINLOCK(sample_lock);
5151

5252
static char *oprofid = "LoongsonPerf";
5353
static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id);

‎arch/mips/pci/ops-pmcmsp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void pci_proc_init(void)
206206
}
207207
#endif /* CONFIG_PROC_FS && PCI_COUNTERS */
208208

209-
DEFINE_SPINLOCK(bpci_lock);
209+
static DEFINE_SPINLOCK(bpci_lock);
210210

211211
/*****************************************************************************
212212
*

‎arch/mips/sgi-ip27/ip27-nmi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
typedef unsigned long machreg_t;
2323

24-
DEFINE_SPINLOCK(nmi_lock);
24+
static DEFINE_SPINLOCK(nmi_lock);
2525

2626
/*
2727
* Lets see what else we need to do here. Set up sp, gp?

‎arch/mips/sibyte/bcm1480/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static struct irq_chip bcm1480_irq_type = {
7373
/* Store the CPU id (not the logical number) */
7474
int bcm1480_irq_owner[BCM1480_NR_IRQS];
7575

76-
DEFINE_SPINLOCK(bcm1480_imr_lock);
76+
static DEFINE_SPINLOCK(bcm1480_imr_lock);
7777

7878
void bcm1480_mask_irq(int cpu, int irq)
7979
{

‎arch/mips/sibyte/sb1250/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static struct irq_chip sb1250_irq_type = {
7272
/* Store the CPU id (not the logical number) */
7373
int sb1250_irq_owner[SB1250_NR_IRQS];
7474

75-
DEFINE_SPINLOCK(sb1250_imr_lock);
75+
static DEFINE_SPINLOCK(sb1250_imr_lock);
7676

7777
void sb1250_mask_irq(int cpu, int irq)
7878
{

‎arch/mips/sni/rm200.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ device_initcall(snirm_setup_devinit);
132132
* readb/writeb to access them
133133
*/
134134

135-
DEFINE_SPINLOCK(sni_rm200_i8259A_lock);
135+
static DEFINE_SPINLOCK(sni_rm200_i8259A_lock);
136136
#define PIC_CMD 0x00
137137
#define PIC_IMR 0x01
138138
#define PIC_ISR PIC_CMD

0 commit comments

Comments
 (0)