summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/paca.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-12-05 11:31:08 +0800
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-12-09 11:40:25 +1100
commit1a8f6f97ea4dbaaa21b05cae2dacea47e4aea37b (patch)
tree512a16aa42a5d8ee882e36c175b3c01530741f2e /arch/powerpc/kernel/paca.c
parentd317ac1750141db07ba30ecb1e2bacebad292fcd (diff)
downloadop-kernel-dev-1a8f6f97ea4dbaaa21b05cae2dacea47e4aea37b.zip
op-kernel-dev-1a8f6f97ea4dbaaa21b05cae2dacea47e4aea37b.tar.gz
powerpc: Make slb_shadow a local
The only external user of slb_shadow is the pseries lpar code, and it can access through the paca array instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/paca.c')
-rw-r--r--arch/powerpc/kernel/paca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/paca.c b/arch/powerpc/kernel/paca.c
index 0620eaa..9095a6f 100644
--- a/arch/powerpc/kernel/paca.c
+++ b/arch/powerpc/kernel/paca.c
@@ -99,7 +99,7 @@ static inline void free_lppacas(void) { }
* 3 persistent SLBs are registered here. The buffer will be zero
* initially, hence will all be invaild until we actually write them.
*/
-struct slb_shadow slb_shadow[] __cacheline_aligned = {
+static struct slb_shadow slb_shadow[] __cacheline_aligned = {
[0 ... (NR_CPUS-1)] = {
.persistent = cpu_to_be32(SLB_NUM_BOLTED),
.buffer_length = cpu_to_be32(sizeof(struct slb_shadow)),
OpenPOWER on IntegriCloud