diff options
-rw-r--r-- | arch/mips/pci/ops-pmcmsp.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/slice.c | 2 | ||||
-rw-r--r-- | fs/sysfs/dir.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/pci/ops-pmcmsp.c b/arch/mips/pci/ops-pmcmsp.c index 09fa007c1d1b..059eade96f2e 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 | spinlock_t bpci_lock = SPIN_LOCK_UNLOCKED; | 209 | DEFINE_SPINLOCK(bpci_lock); |
210 | 210 | ||
211 | /***************************************************************************** | 211 | /***************************************************************************** |
212 | * | 212 | * |
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 319826ef1645..ad928edafb0a 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/mmu.h> | 34 | #include <asm/mmu.h> |
35 | #include <asm/spu.h> | 35 | #include <asm/spu.h> |
36 | 36 | ||
37 | static spinlock_t slice_convert_lock = SPIN_LOCK_UNLOCKED; | 37 | static DEFINE_SPINLOCK(slice_convert_lock); |
38 | 38 | ||
39 | 39 | ||
40 | #ifdef DEBUG | 40 | #ifdef DEBUG |
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index d3118d482935..7a8ce9e98b32 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c | |||
@@ -24,9 +24,9 @@ | |||
24 | 24 | ||
25 | DEFINE_MUTEX(sysfs_mutex); | 25 | DEFINE_MUTEX(sysfs_mutex); |
26 | DEFINE_MUTEX(sysfs_rename_mutex); | 26 | DEFINE_MUTEX(sysfs_rename_mutex); |
27 | spinlock_t sysfs_assoc_lock = SPIN_LOCK_UNLOCKED; | 27 | DEFINE_SPINLOCK(sysfs_assoc_lock); |
28 | 28 | ||
29 | static spinlock_t sysfs_ino_lock = SPIN_LOCK_UNLOCKED; | 29 | static DEFINE_SPINLOCK(sysfs_ino_lock); |
30 | static DEFINE_IDA(sysfs_ino_ida); | 30 | static DEFINE_IDA(sysfs_ino_ida); |
31 | 31 | ||
32 | /** | 32 | /** |