aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-12-27 04:11:39 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-24 14:40:20 -0500
commit433555221b6c8bff4fee2d5ab84e7aea6b1f068e (patch)
treef551c26d134bd92a660f0e8153e8a137610809c8 /tools
parent14d1ac7429d104b09d65c72fd215e1cffd5c7eba (diff)
perf sort: Get rid of unnecessary __maybe_unused
Some functions have set __maybe_unused on its arguments that are used actually. Remove them. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1356599507-14226-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/sort.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c
index ce5d40456c07..3c2836eeafb5 100644
--- a/tools/perf/util/sort.c
+++ b/tools/perf/util/sort.c
@@ -197,7 +197,7 @@ sort__sym_cmp(struct hist_entry *left, struct hist_entry *right)
197 197
198static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, 198static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym,
199 u64 ip, char level, char *bf, size_t size, 199 u64 ip, char level, char *bf, size_t size,
200 unsigned int width __maybe_unused) 200 unsigned int width)
201{ 201{
202 size_t ret = 0; 202 size_t ret = 0;
203 203
@@ -224,8 +224,7 @@ static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym,
224} 224}
225 225
226static int hist_entry__sym_snprintf(struct hist_entry *self, char *bf, 226static int hist_entry__sym_snprintf(struct hist_entry *self, char *bf,
227 size_t size, 227 size_t size, unsigned int width)
228 unsigned int width __maybe_unused)
229{ 228{
230 return _hist_entry__sym_snprintf(self->ms.map, self->ms.sym, self->ip, 229 return _hist_entry__sym_snprintf(self->ms.map, self->ms.sym, self->ip,
231 self->level, bf, size, width); 230 self->level, bf, size, width);
@@ -398,8 +397,7 @@ sort__sym_to_cmp(struct hist_entry *left, struct hist_entry *right)
398} 397}
399 398
400static int hist_entry__sym_from_snprintf(struct hist_entry *self, char *bf, 399static int hist_entry__sym_from_snprintf(struct hist_entry *self, char *bf,
401 size_t size, 400 size_t size, unsigned int width)
402 unsigned int width __maybe_unused)
403{ 401{
404 struct addr_map_symbol *from = &self->branch_info->from; 402 struct addr_map_symbol *from = &self->branch_info->from;
405 return _hist_entry__sym_snprintf(from->map, from->sym, from->addr, 403 return _hist_entry__sym_snprintf(from->map, from->sym, from->addr,
@@ -408,8 +406,7 @@ static int hist_entry__sym_from_snprintf(struct hist_entry *self, char *bf,
408} 406}
409 407
410static int hist_entry__sym_to_snprintf(struct hist_entry *self, char *bf, 408static int hist_entry__sym_to_snprintf(struct hist_entry *self, char *bf,
411 size_t size, 409 size_t size, unsigned int width)
412 unsigned int width __maybe_unused)
413{ 410{
414 struct addr_map_symbol *to = &self->branch_info->to; 411 struct addr_map_symbol *to = &self->branch_info->to;
415 return _hist_entry__sym_snprintf(to->map, to->sym, to->addr, 412 return _hist_entry__sym_snprintf(to->map, to->sym, to->addr,