diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 1f8d11b4f7ff..97b2e6300f4c 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -223,9 +223,9 @@ static int process_sample_event(struct perf_tool *tool, | |||
223 | 223 | ||
224 | static int process_read_event(struct perf_tool *tool, | 224 | static int process_read_event(struct perf_tool *tool, |
225 | union perf_event *event, | 225 | union perf_event *event, |
226 | struct perf_sample *sample __used, | 226 | struct perf_sample *sample __maybe_unused, |
227 | struct perf_evsel *evsel, | 227 | struct perf_evsel *evsel, |
228 | struct machine *machine __used) | 228 | struct machine *machine __maybe_unused) |
229 | { | 229 | { |
230 | struct perf_report *rep = container_of(tool, struct perf_report, tool); | 230 | struct perf_report *rep = container_of(tool, struct perf_report, tool); |
231 | 231 | ||
@@ -287,7 +287,7 @@ static int perf_report__setup_sample_type(struct perf_report *rep) | |||
287 | 287 | ||
288 | extern volatile int session_done; | 288 | extern volatile int session_done; |
289 | 289 | ||
290 | static void sig_handler(int sig __used) | 290 | static void sig_handler(int sig __maybe_unused) |
291 | { | 291 | { |
292 | session_done = 1; | 292 | session_done = 1; |
293 | } | 293 | } |
@@ -533,13 +533,14 @@ setup: | |||
533 | } | 533 | } |
534 | 534 | ||
535 | static int | 535 | static int |
536 | parse_branch_mode(const struct option *opt __used, const char *str __used, int unset) | 536 | parse_branch_mode(const struct option *opt __maybe_unused, |
537 | const char *str __maybe_unused, int unset) | ||
537 | { | 538 | { |
538 | sort__branch_mode = !unset; | 539 | sort__branch_mode = !unset; |
539 | return 0; | 540 | return 0; |
540 | } | 541 | } |
541 | 542 | ||
542 | int cmd_report(int argc, const char **argv, const char *prefix __used) | 543 | int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) |
543 | { | 544 | { |
544 | struct perf_session *session; | 545 | struct perf_session *session; |
545 | struct stat st; | 546 | struct stat st; |