diff options
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r-- | tools/perf/builtin-kmem.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index ad9f52097388..f5f8a6b745a3 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c | |||
@@ -320,7 +320,7 @@ static int perf_evsel__process_kmem_event(struct perf_evsel *evsel, | |||
320 | return 0; | 320 | return 0; |
321 | } | 321 | } |
322 | 322 | ||
323 | static int process_sample_event(struct perf_tool *tool __used, | 323 | static int process_sample_event(struct perf_tool *tool __maybe_unused, |
324 | union perf_event *event, | 324 | union perf_event *event, |
325 | struct perf_sample *sample, | 325 | struct perf_sample *sample, |
326 | struct perf_evsel *evsel, | 326 | struct perf_evsel *evsel, |
@@ -672,8 +672,8 @@ static int setup_sorting(struct list_head *sort_list, const char *arg) | |||
672 | return 0; | 672 | return 0; |
673 | } | 673 | } |
674 | 674 | ||
675 | static int parse_sort_opt(const struct option *opt __used, | 675 | static int parse_sort_opt(const struct option *opt __maybe_unused, |
676 | const char *arg, int unset __used) | 676 | const char *arg, int unset __maybe_unused) |
677 | { | 677 | { |
678 | if (!arg) | 678 | if (!arg) |
679 | return -1; | 679 | return -1; |
@@ -686,22 +686,24 @@ static int parse_sort_opt(const struct option *opt __used, | |||
686 | return 0; | 686 | return 0; |
687 | } | 687 | } |
688 | 688 | ||
689 | static int parse_caller_opt(const struct option *opt __used, | 689 | static int parse_caller_opt(const struct option *opt __maybe_unused, |
690 | const char *arg __used, int unset __used) | 690 | const char *arg __maybe_unused, |
691 | int unset __maybe_unused) | ||
691 | { | 692 | { |
692 | caller_flag = (alloc_flag + 1); | 693 | caller_flag = (alloc_flag + 1); |
693 | return 0; | 694 | return 0; |
694 | } | 695 | } |
695 | 696 | ||
696 | static int parse_alloc_opt(const struct option *opt __used, | 697 | static int parse_alloc_opt(const struct option *opt __maybe_unused, |
697 | const char *arg __used, int unset __used) | 698 | const char *arg __maybe_unused, |
699 | int unset __maybe_unused) | ||
698 | { | 700 | { |
699 | alloc_flag = (caller_flag + 1); | 701 | alloc_flag = (caller_flag + 1); |
700 | return 0; | 702 | return 0; |
701 | } | 703 | } |
702 | 704 | ||
703 | static int parse_line_opt(const struct option *opt __used, | 705 | static int parse_line_opt(const struct option *opt __maybe_unused, |
704 | const char *arg, int unset __used) | 706 | const char *arg, int unset __maybe_unused) |
705 | { | 707 | { |
706 | int lines; | 708 | int lines; |
707 | 709 | ||
@@ -771,7 +773,7 @@ static int __cmd_record(int argc, const char **argv) | |||
771 | return cmd_record(i, rec_argv, NULL); | 773 | return cmd_record(i, rec_argv, NULL); |
772 | } | 774 | } |
773 | 775 | ||
774 | int cmd_kmem(int argc, const char **argv, const char *prefix __used) | 776 | int cmd_kmem(int argc, const char **argv, const char *prefix __maybe_unused) |
775 | { | 777 | { |
776 | argc = parse_options(argc, argv, kmem_options, kmem_usage, 0); | 778 | argc = parse_options(argc, argv, kmem_options, kmem_usage, 0); |
777 | 779 | ||