aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2016-07-07 22:54:27 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-14 20:26:23 +1000
commit13629dad1e30e310bb21baa102d1c0dcc17b47ae (patch)
tree8fcaf70e52a25015486884b9e0e8d199a2201a61 /arch/powerpc/xmon
parentpowerpc/xmon: Remove unused externs (diff)
downloadlinux-dev-13629dad1e30e310bb21baa102d1c0dcc17b47ae.tar.xz
linux-dev-13629dad1e30e310bb21baa102d1c0dcc17b47ae.zip
powerpc/xmon: Move static regno into its only user
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/xmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index f351ba6a58ab..369501283994 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1682,7 +1682,6 @@ write_spr(int n, unsigned long val)
catch_spr_faults = 0;
}
-static unsigned long regno;
static void dump_one_spr(int spr, bool show_unimplemented)
{
@@ -1714,6 +1713,7 @@ static void dump_one_spr(int spr, bool show_unimplemented)
static void super_regs(void)
{
+ static unsigned long regno;
int cmd;
int spr;