diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-03-22 12:09:37 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-03-23 11:03:04 -0400 |
commit | b8f8eb84f4834b5232faf57559adbc80dbcf85da (patch) | |
tree | fecf0ce6dcf74b2ab2e0bc86eb582a29f667fd76 | |
parent | 4ca0d8193f8b6b2c74d05d9bbcbaa99fdd553503 (diff) |
perf tools: Remove misplaced __maybe_unused
All over the tree.
Cc: David Ahern <dsahern@gmail.com>
cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/n/tip-8nzhnokxyp8y4v7gf0j00oyb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/bench/bench.h | 2 | ||||
-rw-r--r-- | tools/perf/builtin-inject.c | 3 | ||||
-rw-r--r-- | tools/perf/builtin-script.c | 2 | ||||
-rw-r--r-- | tools/perf/ui/gtk/hists.c | 2 | ||||
-rw-r--r-- | tools/perf/util/annotate.h | 2 | ||||
-rw-r--r-- | tools/perf/util/auxtrace.h | 2 | ||||
-rw-r--r-- | tools/perf/util/data-convert-bt.c | 2 | ||||
-rw-r--r-- | tools/perf/util/dso.h | 2 | ||||
-rw-r--r-- | tools/perf/util/header.h | 2 | ||||
-rw-r--r-- | tools/perf/util/hist.c | 2 | ||||
-rw-r--r-- | tools/perf/util/hist.h | 3 | ||||
-rw-r--r-- | tools/perf/util/intel-bts.c | 2 | ||||
-rw-r--r-- | tools/perf/util/machine.h | 2 | ||||
-rw-r--r-- | tools/perf/util/sort.c | 2 | ||||
-rw-r--r-- | tools/perf/util/stat-shadow.c | 18 |
15 files changed, 22 insertions, 26 deletions
diff --git a/tools/perf/bench/bench.h b/tools/perf/bench/bench.h index a50df86f2b9b..7e7e43207bbd 100644 --- a/tools/perf/bench/bench.h +++ b/tools/perf/bench/bench.h | |||
@@ -29,7 +29,7 @@ extern int bench_numa(int argc, const char **argv, const char *prefix); | |||
29 | extern int bench_sched_messaging(int argc, const char **argv, const char *prefix); | 29 | extern int bench_sched_messaging(int argc, const char **argv, const char *prefix); |
30 | extern int bench_sched_pipe(int argc, const char **argv, const char *prefix); | 30 | extern int bench_sched_pipe(int argc, const char **argv, const char *prefix); |
31 | extern int bench_mem_memcpy(int argc, const char **argv, | 31 | extern int bench_mem_memcpy(int argc, const char **argv, |
32 | const char *prefix __maybe_unused); | 32 | const char *prefix); |
33 | extern int bench_mem_memset(int argc, const char **argv, const char *prefix); | 33 | extern int bench_mem_memset(int argc, const char **argv, const char *prefix); |
34 | extern int bench_futex_hash(int argc, const char **argv, const char *prefix); | 34 | extern int bench_futex_hash(int argc, const char **argv, const char *prefix); |
35 | extern int bench_futex_wake(int argc, const char **argv, const char *prefix); | 35 | extern int bench_futex_wake(int argc, const char **argv, const char *prefix); |
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index 7fa68663ed72..b33b42c009ed 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c | |||
@@ -131,8 +131,7 @@ static int copy_bytes(struct perf_inject *inject, int fd, off_t size) | |||
131 | 131 | ||
132 | static s64 perf_event__repipe_auxtrace(struct perf_tool *tool, | 132 | static s64 perf_event__repipe_auxtrace(struct perf_tool *tool, |
133 | union perf_event *event, | 133 | union perf_event *event, |
134 | struct perf_session *session | 134 | struct perf_session *session) |
135 | __maybe_unused) | ||
136 | { | 135 | { |
137 | struct perf_inject *inject = container_of(tool, struct perf_inject, | 136 | struct perf_inject *inject = container_of(tool, struct perf_inject, |
138 | tool); | 137 | tool); |
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 57f9a7e7f7d3..d04c8e7a9507 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -498,7 +498,7 @@ static void print_sample_brstack(union perf_event *event __maybe_unused, | |||
498 | } | 498 | } |
499 | } | 499 | } |
500 | 500 | ||
501 | static void print_sample_brstacksym(union perf_event *event __maybe_unused, | 501 | static void print_sample_brstacksym(union perf_event *event, |
502 | struct perf_sample *sample, | 502 | struct perf_sample *sample, |
503 | struct thread *thread __maybe_unused, | 503 | struct thread *thread __maybe_unused, |
504 | struct perf_event_attr *attr __maybe_unused) | 504 | struct perf_event_attr *attr __maybe_unused) |
diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c index bd9bf7e343b1..2aa45b606fa4 100644 --- a/tools/perf/ui/gtk/hists.c +++ b/tools/perf/ui/gtk/hists.c | |||
@@ -55,7 +55,7 @@ static u64 he_get_acc_##_field(struct hist_entry *he) \ | |||
55 | return he->stat_acc->_field; \ | 55 | return he->stat_acc->_field; \ |
56 | } \ | 56 | } \ |
57 | \ | 57 | \ |
58 | static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \ | 58 | static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt, \ |
59 | struct perf_hpp *hpp, \ | 59 | struct perf_hpp *hpp, \ |
60 | struct hist_entry *he) \ | 60 | struct hist_entry *he) \ |
61 | { \ | 61 | { \ |
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index cea323d9ee7e..9241f8c2b7e1 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -158,7 +158,7 @@ int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize); | |||
158 | 158 | ||
159 | int hist_entry__annotate(struct hist_entry *he, size_t privsize); | 159 | int hist_entry__annotate(struct hist_entry *he, size_t privsize); |
160 | 160 | ||
161 | int symbol__annotate_init(struct map *map __maybe_unused, struct symbol *sym); | 161 | int symbol__annotate_init(struct map *map, struct symbol *sym); |
162 | int symbol__annotate_printf(struct symbol *sym, struct map *map, | 162 | int symbol__annotate_printf(struct symbol *sym, struct map *map, |
163 | struct perf_evsel *evsel, bool full_paths, | 163 | struct perf_evsel *evsel, bool full_paths, |
164 | int min_pcnt, int max_lines, int context); | 164 | int min_pcnt, int max_lines, int context); |
diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index e5a8e2d4f2af..57ff31ecb8e4 100644 --- a/tools/perf/util/auxtrace.h +++ b/tools/perf/util/auxtrace.h | |||
@@ -517,7 +517,7 @@ static inline void auxtrace__free(struct perf_session *session) | |||
517 | 517 | ||
518 | static inline struct auxtrace_record * | 518 | static inline struct auxtrace_record * |
519 | auxtrace_record__init(struct perf_evlist *evlist __maybe_unused, | 519 | auxtrace_record__init(struct perf_evlist *evlist __maybe_unused, |
520 | int *err __maybe_unused) | 520 | int *err) |
521 | { | 521 | { |
522 | *err = 0; | 522 | *err = 0; |
523 | return NULL; | 523 | return NULL; |
diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c index 811af89ce0bb..bbf69d248ec5 100644 --- a/tools/perf/util/data-convert-bt.c +++ b/tools/perf/util/data-convert-bt.c | |||
@@ -632,7 +632,7 @@ static bool is_flush_needed(struct ctf_stream *cs) | |||
632 | } | 632 | } |
633 | 633 | ||
634 | static int process_sample_event(struct perf_tool *tool, | 634 | static int process_sample_event(struct perf_tool *tool, |
635 | union perf_event *_event __maybe_unused, | 635 | union perf_event *_event, |
636 | struct perf_sample *sample, | 636 | struct perf_sample *sample, |
637 | struct perf_evsel *evsel, | 637 | struct perf_evsel *evsel, |
638 | struct machine *machine __maybe_unused) | 638 | struct machine *machine __maybe_unused) |
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index ef3dbc989013..0953280629cf 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
@@ -302,7 +302,7 @@ int __kmod_path__parse(struct kmod_path *m, const char *path, | |||
302 | * TODO | 302 | * TODO |
303 | */ | 303 | */ |
304 | int dso__data_get_fd(struct dso *dso, struct machine *machine); | 304 | int dso__data_get_fd(struct dso *dso, struct machine *machine); |
305 | void dso__data_put_fd(struct dso *dso __maybe_unused); | 305 | void dso__data_put_fd(struct dso *dso); |
306 | void dso__data_close(struct dso *dso); | 306 | void dso__data_close(struct dso *dso); |
307 | 307 | ||
308 | off_t dso__data_size(struct dso *dso, struct machine *machine); | 308 | off_t dso__data_size(struct dso *dso, struct machine *machine); |
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 3d87ca823c0a..d306ca118449 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -121,7 +121,7 @@ int perf_event__synthesize_event_update_cpus(struct perf_tool *tool, | |||
121 | perf_event__handler_t process); | 121 | perf_event__handler_t process); |
122 | int perf_event__process_attr(struct perf_tool *tool, union perf_event *event, | 122 | int perf_event__process_attr(struct perf_tool *tool, union perf_event *event, |
123 | struct perf_evlist **pevlist); | 123 | struct perf_evlist **pevlist); |
124 | int perf_event__process_event_update(struct perf_tool *tool __maybe_unused, | 124 | int perf_event__process_event_update(struct perf_tool *tool, |
125 | union perf_event *event, | 125 | union perf_event *event, |
126 | struct perf_evlist **pevlist); | 126 | struct perf_evlist **pevlist); |
127 | size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp); | 127 | size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp); |
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 290b3cbf6877..31c4641fe5ff 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -670,7 +670,7 @@ iter_prepare_branch_entry(struct hist_entry_iter *iter, struct addr_location *al | |||
670 | } | 670 | } |
671 | 671 | ||
672 | static int | 672 | static int |
673 | iter_add_single_branch_entry(struct hist_entry_iter *iter __maybe_unused, | 673 | iter_add_single_branch_entry(struct hist_entry_iter *iter, |
674 | struct addr_location *al __maybe_unused) | 674 | struct addr_location *al __maybe_unused) |
675 | { | 675 | { |
676 | /* to avoid calling callback function */ | 676 | /* to avoid calling callback function */ |
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index ead18c82294f..bec0cd660fbd 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -433,8 +433,7 @@ void hist__account_cycles(struct branch_stack *bs, struct addr_location *al, | |||
433 | struct perf_sample *sample, bool nonany_branch_mode); | 433 | struct perf_sample *sample, bool nonany_branch_mode); |
434 | 434 | ||
435 | struct option; | 435 | struct option; |
436 | int parse_filter_percentage(const struct option *opt __maybe_unused, | 436 | int parse_filter_percentage(const struct option *opt, const char *arg, int unset); |
437 | const char *arg, int unset __maybe_unused); | ||
438 | int perf_hist_config(const char *var, const char *value); | 437 | int perf_hist_config(const char *var, const char *value); |
439 | 438 | ||
440 | void perf_hpp_list__init(struct perf_hpp_list *list); | 439 | void perf_hpp_list__init(struct perf_hpp_list *list); |
diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c index eb0e7f8bf515..6bc3ecd2e7ca 100644 --- a/tools/perf/util/intel-bts.c +++ b/tools/perf/util/intel-bts.c | |||
@@ -678,7 +678,7 @@ static int intel_bts_process_auxtrace_event(struct perf_session *session, | |||
678 | return 0; | 678 | return 0; |
679 | } | 679 | } |
680 | 680 | ||
681 | static int intel_bts_flush(struct perf_session *session __maybe_unused, | 681 | static int intel_bts_flush(struct perf_session *session, |
682 | struct perf_tool *tool __maybe_unused) | 682 | struct perf_tool *tool __maybe_unused) |
683 | { | 683 | { |
684 | struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, | 684 | struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts, |
diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h index 1a3e45baf97f..8499db281158 100644 --- a/tools/perf/util/machine.h +++ b/tools/perf/util/machine.h | |||
@@ -94,7 +94,7 @@ int machine__process_aux_event(struct machine *machine, | |||
94 | union perf_event *event); | 94 | union perf_event *event); |
95 | int machine__process_itrace_start_event(struct machine *machine, | 95 | int machine__process_itrace_start_event(struct machine *machine, |
96 | union perf_event *event); | 96 | union perf_event *event); |
97 | int machine__process_switch_event(struct machine *machine __maybe_unused, | 97 | int machine__process_switch_event(struct machine *machine, |
98 | union perf_event *event); | 98 | union perf_event *event); |
99 | int machine__process_mmap_event(struct machine *machine, union perf_event *event, | 99 | int machine__process_mmap_event(struct machine *machine, union perf_event *event, |
100 | struct perf_sample *sample); | 100 | struct perf_sample *sample); |
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 93fa136b0025..47966a1618c7 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -2225,7 +2225,7 @@ int hpp_dimension__add_output(unsigned col) | |||
2225 | } | 2225 | } |
2226 | 2226 | ||
2227 | static int sort_dimension__add(struct perf_hpp_list *list, const char *tok, | 2227 | static int sort_dimension__add(struct perf_hpp_list *list, const char *tok, |
2228 | struct perf_evlist *evlist __maybe_unused, | 2228 | struct perf_evlist *evlist, |
2229 | int level) | 2229 | int level) |
2230 | { | 2230 | { |
2231 | unsigned int i; | 2231 | unsigned int i; |
diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c index b33ffb2af2cf..fdb71961143e 100644 --- a/tools/perf/util/stat-shadow.c +++ b/tools/perf/util/stat-shadow.c | |||
@@ -152,8 +152,7 @@ static const char *get_ratio_color(enum grc_type type, double ratio) | |||
152 | } | 152 | } |
153 | 153 | ||
154 | static void print_stalled_cycles_frontend(int cpu, | 154 | static void print_stalled_cycles_frontend(int cpu, |
155 | struct perf_evsel *evsel | 155 | struct perf_evsel *evsel, double avg, |
156 | __maybe_unused, double avg, | ||
157 | struct perf_stat_output_ctx *out) | 156 | struct perf_stat_output_ctx *out) |
158 | { | 157 | { |
159 | double total, ratio = 0.0; | 158 | double total, ratio = 0.0; |
@@ -175,8 +174,7 @@ static void print_stalled_cycles_frontend(int cpu, | |||
175 | } | 174 | } |
176 | 175 | ||
177 | static void print_stalled_cycles_backend(int cpu, | 176 | static void print_stalled_cycles_backend(int cpu, |
178 | struct perf_evsel *evsel | 177 | struct perf_evsel *evsel, double avg, |
179 | __maybe_unused, double avg, | ||
180 | struct perf_stat_output_ctx *out) | 178 | struct perf_stat_output_ctx *out) |
181 | { | 179 | { |
182 | double total, ratio = 0.0; | 180 | double total, ratio = 0.0; |
@@ -194,7 +192,7 @@ static void print_stalled_cycles_backend(int cpu, | |||
194 | } | 192 | } |
195 | 193 | ||
196 | static void print_branch_misses(int cpu, | 194 | static void print_branch_misses(int cpu, |
197 | struct perf_evsel *evsel __maybe_unused, | 195 | struct perf_evsel *evsel, |
198 | double avg, | 196 | double avg, |
199 | struct perf_stat_output_ctx *out) | 197 | struct perf_stat_output_ctx *out) |
200 | { | 198 | { |
@@ -213,7 +211,7 @@ static void print_branch_misses(int cpu, | |||
213 | } | 211 | } |
214 | 212 | ||
215 | static void print_l1_dcache_misses(int cpu, | 213 | static void print_l1_dcache_misses(int cpu, |
216 | struct perf_evsel *evsel __maybe_unused, | 214 | struct perf_evsel *evsel, |
217 | double avg, | 215 | double avg, |
218 | struct perf_stat_output_ctx *out) | 216 | struct perf_stat_output_ctx *out) |
219 | { | 217 | { |
@@ -232,7 +230,7 @@ static void print_l1_dcache_misses(int cpu, | |||
232 | } | 230 | } |
233 | 231 | ||
234 | static void print_l1_icache_misses(int cpu, | 232 | static void print_l1_icache_misses(int cpu, |
235 | struct perf_evsel *evsel __maybe_unused, | 233 | struct perf_evsel *evsel, |
236 | double avg, | 234 | double avg, |
237 | struct perf_stat_output_ctx *out) | 235 | struct perf_stat_output_ctx *out) |
238 | { | 236 | { |
@@ -250,7 +248,7 @@ static void print_l1_icache_misses(int cpu, | |||
250 | } | 248 | } |
251 | 249 | ||
252 | static void print_dtlb_cache_misses(int cpu, | 250 | static void print_dtlb_cache_misses(int cpu, |
253 | struct perf_evsel *evsel __maybe_unused, | 251 | struct perf_evsel *evsel, |
254 | double avg, | 252 | double avg, |
255 | struct perf_stat_output_ctx *out) | 253 | struct perf_stat_output_ctx *out) |
256 | { | 254 | { |
@@ -268,7 +266,7 @@ static void print_dtlb_cache_misses(int cpu, | |||
268 | } | 266 | } |
269 | 267 | ||
270 | static void print_itlb_cache_misses(int cpu, | 268 | static void print_itlb_cache_misses(int cpu, |
271 | struct perf_evsel *evsel __maybe_unused, | 269 | struct perf_evsel *evsel, |
272 | double avg, | 270 | double avg, |
273 | struct perf_stat_output_ctx *out) | 271 | struct perf_stat_output_ctx *out) |
274 | { | 272 | { |
@@ -286,7 +284,7 @@ static void print_itlb_cache_misses(int cpu, | |||
286 | } | 284 | } |
287 | 285 | ||
288 | static void print_ll_cache_misses(int cpu, | 286 | static void print_ll_cache_misses(int cpu, |
289 | struct perf_evsel *evsel __maybe_unused, | 287 | struct perf_evsel *evsel, |
290 | double avg, | 288 | double avg, |
291 | struct perf_stat_output_ctx *out) | 289 | struct perf_stat_output_ctx *out) |
292 | { | 290 | { |