diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2012-10-09 14:49:51 -0700 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-10 01:15:44 -0400 |
commit | 466cab878ef98a0618734a1fa64a02e5fbf90867 (patch) | |
tree | 956eced7877c83c6a9cbf51c3481ef568c398e51 /include/linux/lglock.h | |
parent | 462e1e1bc879d10d7c2ce96a1b1001edaaa815ba (diff) |
lglock: make the per_cpu locks static
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>
Diffstat (limited to 'include/linux/lglock.h')
-rw-r--r-- | include/linux/lglock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lglock.h b/include/linux/lglock.h index 45eff71de887..8f974517c48a 100644 --- a/include/linux/lglock.h +++ b/include/linux/lglock.h @@ -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 } |