Skip to contentSkip to conversation

perf script: Make some lists static

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jan 5, 2011 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  eccdfe2d245a882feacc4630c9bc29805e9929c8
Gitweb:     http://git.kernel.org/tip/eccdfe2d245a882feacc4630c9bc29805e9929c8
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 4 Jan 2011 16:32:52 -0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 5 Jan 2011 14:53:59 -0200

perf script: Make some lists static

Not accessed outside builtin-script, so make them static.

Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/builtin-script.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-script.c +2 -2
index 27d568d..150a606 100644
@@ -137,7 +137,7 @@ struct script_spec {
 	char			spec[0];
 };
 
-LIST_HEAD(script_specs);
+static LIST_HEAD(script_specs);
 
 static struct script_spec *script_spec__new(const char *spec,
 					    struct scripting_ops *ops)
@@ -319,7 +319,7 @@ struct script_desc {
 	char			*args;
 };
 
-LIST_HEAD(script_descs);
+static LIST_HEAD(script_descs);
 
 static struct script_desc *script_desc__new(const char *name)
 {