[PATCH] perf tools: Make symbol_conf static

From: Frederic Weisbecker
Date: Mon Dec 14 2009 - 21:15:32 EST


perf top, report and annotate all define their own symbol_conf, it
should be static.

Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
---
tools/perf/builtin-report.c | 2 +-
tools/perf/builtin-top.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 142c475..83b4b67 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -52,7 +52,7 @@ static int exclude_other = 1;

static char callchain_default_opt[] = "fractal,0.5";

-struct symbol_conf symbol_conf;
+static struct symbol_conf symbol_conf;


static size_t
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 3b212bb..296e809 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -80,7 +80,7 @@ static int dump_symtab = 0;
static bool hide_kernel_symbols = false;
static bool hide_user_symbols = false;
static struct winsize winsize;
-struct symbol_conf symbol_conf;
+static struct symbol_conf symbol_conf;

/*
* Source
--
1.6.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/