lglock: make the per_cpu locks static
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 9 Oct 2012 21:49:51 +0000 (14:49 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Oct 2012 05:15:44 +0000 (01:15 -0400)
The per_cpu locks are not used outside the file which contains the
DEFINE_LGLOCK(), so we can make these symbols static.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/lglock.h

index 45eff71de887462f87a536a7bcac2ff87008d518..8f974517c48a2171e301bf6672bb0ef8b6c0ad3d 100644 (file)
@@ -49,7 +49,7 @@ struct lglock {
 };
 
 #define DEFINE_LGLOCK(name)                                            \
-       DEFINE_PER_CPU(arch_spinlock_t, name ## _lock)                  \
+       static DEFINE_PER_CPU(arch_spinlock_t, name ## _lock)           \
        = __ARCH_SPIN_LOCK_UNLOCKED;                                    \
        struct lglock name = { .lock = &name ## _lock }