Commit 466cab878ef98a0618734a1fa64a02e5fbf90867

Authored by Lai Jiangshan
Committed by Al Viro
1 parent 462e1e1bc8

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/linux/lglock.h
... ... @@ -49,7 +49,7 @@
49 49 };
50 50  
51 51 #define DEFINE_LGLOCK(name) \
52   - DEFINE_PER_CPU(arch_spinlock_t, name ## _lock) \
  52 + static DEFINE_PER_CPU(arch_spinlock_t, name ## _lock) \
53 53 = __ARCH_SPIN_LOCK_UNLOCKED; \
54 54 struct lglock name = { .lock = &name ## _lock }
55 55