Commit 43355522 authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

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: default avatarNamhyung Kim <namhyung@kernel.org>
Acked-by: default avatarJiri 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 14d1ac74
...@@ -197,7 +197,7 @@ sort__sym_cmp(struct hist_entry *left, struct hist_entry *right) ...@@ -197,7 +197,7 @@ sort__sym_cmp(struct hist_entry *left, struct hist_entry *right)
static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym,
u64 ip, char level, char *bf, size_t size, u64 ip, char level, char *bf, size_t size,
unsigned int width __maybe_unused) unsigned int width)
{ {
size_t ret = 0; size_t ret = 0;
...@@ -224,8 +224,7 @@ static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, ...@@ -224,8 +224,7 @@ static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym,
} }
static int hist_entry__sym_snprintf(struct hist_entry *self, char *bf, static int hist_entry__sym_snprintf(struct hist_entry *self, char *bf,
size_t size, size_t size, unsigned int width)
unsigned int width __maybe_unused)
{ {
return _hist_entry__sym_snprintf(self->ms.map, self->ms.sym, self->ip, return _hist_entry__sym_snprintf(self->ms.map, self->ms.sym, self->ip,
self->level, bf, size, width); self->level, bf, size, width);
...@@ -398,8 +397,7 @@ sort__sym_to_cmp(struct hist_entry *left, struct hist_entry *right) ...@@ -398,8 +397,7 @@ sort__sym_to_cmp(struct hist_entry *left, struct hist_entry *right)
} }
static int hist_entry__sym_from_snprintf(struct hist_entry *self, char *bf, static int hist_entry__sym_from_snprintf(struct hist_entry *self, char *bf,
size_t size, size_t size, unsigned int width)
unsigned int width __maybe_unused)
{ {
struct addr_map_symbol *from = &self->branch_info->from; struct addr_map_symbol *from = &self->branch_info->from;
return _hist_entry__sym_snprintf(from->map, from->sym, from->addr, 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,8 +406,7 @@ static int hist_entry__sym_from_snprintf(struct hist_entry *self, char *bf,
} }
static int hist_entry__sym_to_snprintf(struct hist_entry *self, char *bf, static int hist_entry__sym_to_snprintf(struct hist_entry *self, char *bf,
size_t size, size_t size, unsigned int width)
unsigned int width __maybe_unused)
{ {
struct addr_map_symbol *to = &self->branch_info->to; struct addr_map_symbol *to = &self->branch_info->to;
return _hist_entry__sym_snprintf(to->map, to->sym, to->addr, return _hist_entry__sym_snprintf(to->map, to->sym, to->addr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment