Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+22 -26
+1 -1
tools/perf/bench/bench.h
··· 29 29 extern int bench_sched_messaging(int argc, const char **argv, const char *prefix); 30 30 extern int bench_sched_pipe(int argc, const char **argv, const char *prefix); 31 31 extern int bench_mem_memcpy(int argc, const char **argv, 32 - const char *prefix __maybe_unused); 32 + const char *prefix); 33 33 extern int bench_mem_memset(int argc, const char **argv, const char *prefix); 34 34 extern int bench_futex_hash(int argc, const char **argv, const char *prefix); 35 35 extern int bench_futex_wake(int argc, const char **argv, const char *prefix);
+1 -2
tools/perf/builtin-inject.c
··· 131 131 132 132 static s64 perf_event__repipe_auxtrace(struct perf_tool *tool, 133 133 union perf_event *event, 134 - struct perf_session *session 135 - __maybe_unused) 134 + struct perf_session *session) 136 135 { 137 136 struct perf_inject *inject = container_of(tool, struct perf_inject, 138 137 tool);
+1 -1
tools/perf/builtin-script.c
··· 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 502 struct perf_sample *sample, 503 503 struct thread *thread __maybe_unused, 504 504 struct perf_event_attr *attr __maybe_unused)
+1 -1
tools/perf/ui/gtk/hists.c
··· 55 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 59 struct perf_hpp *hpp, \ 60 60 struct hist_entry *he) \ 61 61 { \
+1 -1
tools/perf/util/annotate.h
··· 158 158 159 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 162 int symbol__annotate_printf(struct symbol *sym, struct map *map, 163 163 struct perf_evsel *evsel, bool full_paths, 164 164 int min_pcnt, int max_lines, int context);
+1 -1
tools/perf/util/auxtrace.h
··· 517 517 518 518 static inline struct auxtrace_record * 519 519 auxtrace_record__init(struct perf_evlist *evlist __maybe_unused, 520 - int *err __maybe_unused) 520 + int *err) 521 521 { 522 522 *err = 0; 523 523 return NULL;
+1 -1
tools/perf/util/data-convert-bt.c
··· 632 632 } 633 633 634 634 static int process_sample_event(struct perf_tool *tool, 635 - union perf_event *_event __maybe_unused, 635 + union perf_event *_event, 636 636 struct perf_sample *sample, 637 637 struct perf_evsel *evsel, 638 638 struct machine *machine __maybe_unused)
+1 -1
tools/perf/util/dso.h
··· 302 302 * TODO 303 303 */ 304 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 306 void dso__data_close(struct dso *dso); 307 307 308 308 off_t dso__data_size(struct dso *dso, struct machine *machine);
+1 -1
tools/perf/util/header.h
··· 121 121 perf_event__handler_t process); 122 122 int perf_event__process_attr(struct perf_tool *tool, union perf_event *event, 123 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 125 union perf_event *event, 126 126 struct perf_evlist **pevlist); 127 127 size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp);
+1 -1
tools/perf/util/hist.c
··· 670 670 } 671 671 672 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 674 struct addr_location *al __maybe_unused) 675 675 { 676 676 /* to avoid calling callback function */
+1 -2
tools/perf/util/hist.h
··· 433 433 struct perf_sample *sample, bool nonany_branch_mode); 434 434 435 435 struct option; 436 - int parse_filter_percentage(const struct option *opt __maybe_unused, 437 - const char *arg, int unset __maybe_unused); 436 + int parse_filter_percentage(const struct option *opt, const char *arg, int unset); 438 437 int perf_hist_config(const char *var, const char *value); 439 438 440 439 void perf_hpp_list__init(struct perf_hpp_list *list);
+1 -1
tools/perf/util/intel-bts.c
··· 678 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 682 struct perf_tool *tool __maybe_unused) 683 683 { 684 684 struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
+1 -1
tools/perf/util/machine.h
··· 94 94 union perf_event *event); 95 95 int machine__process_itrace_start_event(struct machine *machine, 96 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 98 union perf_event *event); 99 99 int machine__process_mmap_event(struct machine *machine, union perf_event *event, 100 100 struct perf_sample *sample);
+1 -1
tools/perf/util/sort.c
··· 2225 2225 } 2226 2226 2227 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 2229 int level) 2230 2230 { 2231 2231 unsigned int i;
+8 -10
tools/perf/util/stat-shadow.c
··· 152 152 } 153 153 154 154 static void print_stalled_cycles_frontend(int cpu, 155 - struct perf_evsel *evsel 156 - __maybe_unused, double avg, 155 + struct perf_evsel *evsel, double avg, 157 156 struct perf_stat_output_ctx *out) 158 157 { 159 158 double total, ratio = 0.0; ··· 174 175 } 175 176 176 177 static void print_stalled_cycles_backend(int cpu, 177 - struct perf_evsel *evsel 178 - __maybe_unused, double avg, 178 + struct perf_evsel *evsel, double avg, 179 179 struct perf_stat_output_ctx *out) 180 180 { 181 181 double total, ratio = 0.0; ··· 192 194 } 193 195 194 196 static void print_branch_misses(int cpu, 195 - struct perf_evsel *evsel __maybe_unused, 197 + struct perf_evsel *evsel, 196 198 double avg, 197 199 struct perf_stat_output_ctx *out) 198 200 { ··· 211 213 } 212 214 213 215 static void print_l1_dcache_misses(int cpu, 214 - struct perf_evsel *evsel __maybe_unused, 216 + struct perf_evsel *evsel, 215 217 double avg, 216 218 struct perf_stat_output_ctx *out) 217 219 { ··· 230 232 } 231 233 232 234 static void print_l1_icache_misses(int cpu, 233 - struct perf_evsel *evsel __maybe_unused, 235 + struct perf_evsel *evsel, 234 236 double avg, 235 237 struct perf_stat_output_ctx *out) 236 238 { ··· 248 250 } 249 251 250 252 static void print_dtlb_cache_misses(int cpu, 251 - struct perf_evsel *evsel __maybe_unused, 253 + struct perf_evsel *evsel, 252 254 double avg, 253 255 struct perf_stat_output_ctx *out) 254 256 { ··· 266 268 } 267 269 268 270 static void print_itlb_cache_misses(int cpu, 269 - struct perf_evsel *evsel __maybe_unused, 271 + struct perf_evsel *evsel, 270 272 double avg, 271 273 struct perf_stat_output_ctx *out) 272 274 { ··· 284 286 } 285 287 286 288 static void print_ll_cache_misses(int cpu, 287 - struct perf_evsel *evsel __maybe_unused, 289 + struct perf_evsel *evsel, 288 290 double avg, 289 291 struct perf_stat_output_ctx *out) 290 292 {