Skip to contentSkip to conversation

perf tools: Make symbol_conf static

PATCH In review Frederic Weisbecker 1 participant 2 messages Dec 15, 2009 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tools: Make symbol_conf static

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

Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 tools/perf/builtin-report.c |    2 +-
 tools/perf/builtin-top.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-report.c +1 -1
index 142c475..83b4b67 100644
@@ -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
tools/perf/builtin-top.c +1 -1
index 3b212bb..296e809 100644
@@ -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
Signature · 1 line
1.6.2.3
#1 lore raw
Commit-ID:  c249a4ce796b30b742bb4854bf3039ced12ef8e5
Gitweb:     http://git.kernel.org/tip/c249a4ce796b30b742bb4854bf3039ced12ef8e5
Author:     Frederic Weisbecker <[email protected]>
AuthorDate: Tue, 15 Dec 2009 03:15:22 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 15 Dec 2009 08:52:31 +0100

perf tools: Make symbol_conf static

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

Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Paul Mackerras <[email protected]>

LKML-Reference: <[email protected]>

---
 tools/perf/builtin-report.c |    2 +-
 tools/perf/builtin-top.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-report.c +1 -1
index beff7c0..40389c0 100644
@@ -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
tools/perf/builtin-top.c +1 -1
index 3b212bb..296e809 100644
@@ -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