From: Lai Jiangshan Date: Tue, 9 Oct 2012 21:49:51 +0000 (-0700) Subject: lglock: make the per_cpu locks static X-Git-Tag: v3.7-rc1~42^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=466cab878ef98a0618734a1fa64a02e5fbf90867;p=profile%2Fcommon%2Fkernel-common.git 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 Cc: Alexander Viro Cc: Rusty Russell Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- diff --git a/include/linux/lglock.h b/include/linux/lglock.h index 45eff71..8f97451 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 }