perf tools: Remove misplaced __maybe_unused
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 Mar 2016 16:09:37 +0000 (13:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Mar 2016 15:03:04 +0000 (12:03 -0300)
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>
15 files changed:
tools/perf/bench/bench.h
tools/perf/builtin-inject.c
tools/perf/builtin-script.c
tools/perf/ui/gtk/hists.c
tools/perf/util/annotate.h
tools/perf/util/auxtrace.h
tools/perf/util/data-convert-bt.c
tools/perf/util/dso.h
tools/perf/util/header.h
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/intel-bts.c
tools/perf/util/machine.h
tools/perf/util/sort.c
tools/perf/util/stat-shadow.c

index a50df86f2b9bc1035805fdc66699cf41bbfc6293..7e7e43207bbd3f21e3a5e404dd60a7e504dee094 100644 (file)
@@ -29,7 +29,7 @@ extern int bench_numa(int argc, const char **argv, const char *prefix);
 extern int bench_sched_messaging(int argc, const char **argv, const char *prefix);
 extern int bench_sched_pipe(int argc, const char **argv, const char *prefix);
 extern int bench_mem_memcpy(int argc, const char **argv,
-                           const char *prefix __maybe_unused);
+                           const char *prefix);
 extern int bench_mem_memset(int argc, const char **argv, const char *prefix);
 extern int bench_futex_hash(int argc, const char **argv, const char *prefix);
 extern int bench_futex_wake(int argc, const char **argv, const char *prefix);
index 7fa68663ed7287f63adad2342db987941ba0c1b4..b33b42c009ed18bae2d813bc0ad2a1da542485cb 100644 (file)
@@ -131,8 +131,7 @@ static int copy_bytes(struct perf_inject *inject, int fd, off_t size)
 
 static s64 perf_event__repipe_auxtrace(struct perf_tool *tool,
                                       union perf_event *event,
-                                      struct perf_session *session
-                                      __maybe_unused)
+                                      struct perf_session *session)
 {
        struct perf_inject *inject = container_of(tool, struct perf_inject,
                                                  tool);
index 57f9a7e7f7d3e948a29a92018140902c7f5c840f..d04c8e7a9507fc39fad124446a51edcbf11e2c27 100644 (file)
@@ -498,7 +498,7 @@ static void print_sample_brstack(union perf_event *event __maybe_unused,
        }
 }
 
-static void print_sample_brstacksym(union perf_event *event __maybe_unused,
+static void print_sample_brstacksym(union perf_event *event,
                          struct perf_sample *sample,
                          struct thread *thread __maybe_unused,
                          struct perf_event_attr *attr __maybe_unused)
index bd9bf7e343b1e310d20587d0b0f7b75c6b10a574..2aa45b606fa4199a82a2e31244d26265feb6c021 100644 (file)
@@ -55,7 +55,7 @@ static u64 he_get_acc_##_field(struct hist_entry *he)                         \
        return he->stat_acc->_field;                                            \
 }                                                                              \
                                                                                \
-static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt __maybe_unused,        \
+static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt,               \
                                       struct perf_hpp *hpp,                    \
                                       struct hist_entry *he)                   \
 {                                                                              \
index cea323d9ee7eabbd2101eff85be5e0f564520b91..9241f8c2b7e16e10f222e5d5fc0be5032ba7f4f1 100644 (file)
@@ -158,7 +158,7 @@ int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize);
 
 int hist_entry__annotate(struct hist_entry *he, size_t privsize);
 
-int symbol__annotate_init(struct map *map __maybe_unused, struct symbol *sym);
+int symbol__annotate_init(struct map *map, struct symbol *sym);
 int symbol__annotate_printf(struct symbol *sym, struct map *map,
                            struct perf_evsel *evsel, bool full_paths,
                            int min_pcnt, int max_lines, int context);
index e5a8e2d4f2af4e9b717be7ce27c587f569983027..57ff31ecb8e40f85bd60b876925394172d6843d8 100644 (file)
@@ -517,7 +517,7 @@ static inline void auxtrace__free(struct perf_session *session)
 
 static inline struct auxtrace_record *
 auxtrace_record__init(struct perf_evlist *evlist __maybe_unused,
-                     int *err __maybe_unused)
+                     int *err)
 {
        *err = 0;
        return NULL;
index 811af89ce0bb8f37b99898dc8b2a2d5f6e183d26..bbf69d248ec56ad187f68969367b15c282fbb7fe 100644 (file)
@@ -632,7 +632,7 @@ static bool is_flush_needed(struct ctf_stream *cs)
 }
 
 static int process_sample_event(struct perf_tool *tool,
-                               union perf_event *_event __maybe_unused,
+                               union perf_event *_event,
                                struct perf_sample *sample,
                                struct perf_evsel *evsel,
                                struct machine *machine __maybe_unused)
index ef3dbc9890139b145694f53fb82bd5c735043ee0..0953280629cffde7373b4689c8cdf5d16e992fb5 100644 (file)
@@ -302,7 +302,7 @@ int __kmod_path__parse(struct kmod_path *m, const char *path,
  * TODO
 */
 int dso__data_get_fd(struct dso *dso, struct machine *machine);
-void dso__data_put_fd(struct dso *dso __maybe_unused);
+void dso__data_put_fd(struct dso *dso);
 void dso__data_close(struct dso *dso);
 
 off_t dso__data_size(struct dso *dso, struct machine *machine);
index 3d87ca823c0ae55591e753f6f928802e831c0e3c..d306ca118449ccaa18c398e3496586371b3a798b 100644 (file)
@@ -121,7 +121,7 @@ int perf_event__synthesize_event_update_cpus(struct perf_tool *tool,
                                             perf_event__handler_t process);
 int perf_event__process_attr(struct perf_tool *tool, union perf_event *event,
                             struct perf_evlist **pevlist);
-int perf_event__process_event_update(struct perf_tool *tool __maybe_unused,
+int perf_event__process_event_update(struct perf_tool *tool,
                                     union perf_event *event,
                                     struct perf_evlist **pevlist);
 size_t perf_event__fprintf_event_update(union perf_event *event, FILE *fp);
index 290b3cbf68772de883bff4fee5c2294234dbefd3..31c4641fe5ff06641588bef5e4448641685e49f5 100644 (file)
@@ -670,7 +670,7 @@ iter_prepare_branch_entry(struct hist_entry_iter *iter, struct addr_location *al
 }
 
 static int
-iter_add_single_branch_entry(struct hist_entry_iter *iter __maybe_unused,
+iter_add_single_branch_entry(struct hist_entry_iter *iter,
                             struct addr_location *al __maybe_unused)
 {
        /* to avoid calling callback function */
index ead18c82294faf881f1d4bc89be653e27ff5c708..bec0cd660fbd60d74cebaa6be0b5335871979c47 100644 (file)
@@ -433,8 +433,7 @@ void hist__account_cycles(struct branch_stack *bs, struct addr_location *al,
                          struct perf_sample *sample, bool nonany_branch_mode);
 
 struct option;
-int parse_filter_percentage(const struct option *opt __maybe_unused,
-                           const char *arg, int unset __maybe_unused);
+int parse_filter_percentage(const struct option *opt, const char *arg, int unset);
 int perf_hist_config(const char *var, const char *value);
 
 void perf_hpp_list__init(struct perf_hpp_list *list);
index eb0e7f8bf5158c98c95216d4fb9d3eb96568c50b..6bc3ecd2e7ca3d8e61b2d5ec9fa0714b319182a9 100644 (file)
@@ -678,7 +678,7 @@ static int intel_bts_process_auxtrace_event(struct perf_session *session,
        return 0;
 }
 
-static int intel_bts_flush(struct perf_session *session __maybe_unused,
+static int intel_bts_flush(struct perf_session *session,
                           struct perf_tool *tool __maybe_unused)
 {
        struct intel_bts *bts = container_of(session->auxtrace, struct intel_bts,
index 1a3e45baf97fb575c02afe49707727aff0f628ec..8499db2811583000e5181f1fc91f94c5e5f9f418 100644 (file)
@@ -94,7 +94,7 @@ int machine__process_aux_event(struct machine *machine,
                               union perf_event *event);
 int machine__process_itrace_start_event(struct machine *machine,
                                        union perf_event *event);
-int machine__process_switch_event(struct machine *machine __maybe_unused,
+int machine__process_switch_event(struct machine *machine,
                                  union perf_event *event);
 int machine__process_mmap_event(struct machine *machine, union perf_event *event,
                                struct perf_sample *sample);
index 93fa136b0025c02e1e4383be523fcf37c092f36e..47966a1618c7310108a42de59327930e6acdb184 100644 (file)
@@ -2225,7 +2225,7 @@ int hpp_dimension__add_output(unsigned col)
 }
 
 static int sort_dimension__add(struct perf_hpp_list *list, const char *tok,
-                              struct perf_evlist *evlist __maybe_unused,
+                              struct perf_evlist *evlist,
                               int level)
 {
        unsigned int i;
index b33ffb2af2cf5900378fb9fb8ef60e9eddaaf9db..fdb71961143e641dce7c45175630f344f8edadd7 100644 (file)
@@ -152,8 +152,7 @@ static const char *get_ratio_color(enum grc_type type, double ratio)
 }
 
 static void print_stalled_cycles_frontend(int cpu,
-                                         struct perf_evsel *evsel
-                                         __maybe_unused, double avg,
+                                         struct perf_evsel *evsel, double avg,
                                          struct perf_stat_output_ctx *out)
 {
        double total, ratio = 0.0;
@@ -175,8 +174,7 @@ static void print_stalled_cycles_frontend(int cpu,
 }
 
 static void print_stalled_cycles_backend(int cpu,
-                                        struct perf_evsel *evsel
-                                        __maybe_unused, double avg,
+                                        struct perf_evsel *evsel, double avg,
                                         struct perf_stat_output_ctx *out)
 {
        double total, ratio = 0.0;
@@ -194,7 +192,7 @@ static void print_stalled_cycles_backend(int cpu,
 }
 
 static void print_branch_misses(int cpu,
-                               struct perf_evsel *evsel __maybe_unused,
+                               struct perf_evsel *evsel,
                                double avg,
                                struct perf_stat_output_ctx *out)
 {
@@ -213,7 +211,7 @@ static void print_branch_misses(int cpu,
 }
 
 static void print_l1_dcache_misses(int cpu,
-                                  struct perf_evsel *evsel __maybe_unused,
+                                  struct perf_evsel *evsel,
                                   double avg,
                                   struct perf_stat_output_ctx *out)
 {
@@ -232,7 +230,7 @@ static void print_l1_dcache_misses(int cpu,
 }
 
 static void print_l1_icache_misses(int cpu,
-                                  struct perf_evsel *evsel __maybe_unused,
+                                  struct perf_evsel *evsel,
                                   double avg,
                                   struct perf_stat_output_ctx *out)
 {
@@ -250,7 +248,7 @@ static void print_l1_icache_misses(int cpu,
 }
 
 static void print_dtlb_cache_misses(int cpu,
-                                   struct perf_evsel *evsel __maybe_unused,
+                                   struct perf_evsel *evsel,
                                    double avg,
                                    struct perf_stat_output_ctx *out)
 {
@@ -268,7 +266,7 @@ static void print_dtlb_cache_misses(int cpu,
 }
 
 static void print_itlb_cache_misses(int cpu,
-                                   struct perf_evsel *evsel __maybe_unused,
+                                   struct perf_evsel *evsel,
                                    double avg,
                                    struct perf_stat_output_ctx *out)
 {
@@ -286,7 +284,7 @@ static void print_itlb_cache_misses(int cpu,
 }
 
 static void print_ll_cache_misses(int cpu,
-                                 struct perf_evsel *evsel __maybe_unused,
+                                 struct perf_evsel *evsel,
                                  double avg,
                                  struct perf_stat_output_ctx *out)
 {