Skip to content

Commit

Permalink
lglock: make the per_cpu locks static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lai Jiangshan authored and Al Viro committed Oct 10, 2012
1 parent 462e1e1 commit 466cab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/lglock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit 466cab8

Please sign in to comment.