diff options
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 27187f0b71f0..ca85444bcfbf 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c | |||
| @@ -672,7 +672,7 @@ struct pyrf_evlist { | |||
| 672 | }; | 672 | }; |
| 673 | 673 | ||
| 674 | static int pyrf_evlist__init(struct pyrf_evlist *pevlist, | 674 | static int pyrf_evlist__init(struct pyrf_evlist *pevlist, |
| 675 | PyObject *args, PyObject *kwargs __used) | 675 | PyObject *args, PyObject *kwargs __maybe_unused) |
| 676 | { | 676 | { |
| 677 | PyObject *pcpus = NULL, *pthreads = NULL; | 677 | PyObject *pcpus = NULL, *pthreads = NULL; |
| 678 | struct cpu_map *cpus; | 678 | struct cpu_map *cpus; |
| @@ -733,7 +733,8 @@ static PyObject *pyrf_evlist__poll(struct pyrf_evlist *pevlist, | |||
| 733 | } | 733 | } |
| 734 | 734 | ||
| 735 | static PyObject *pyrf_evlist__get_pollfd(struct pyrf_evlist *pevlist, | 735 | static PyObject *pyrf_evlist__get_pollfd(struct pyrf_evlist *pevlist, |
| 736 | PyObject *args __used, PyObject *kwargs __used) | 736 | PyObject *args __maybe_unused, |
| 737 | PyObject *kwargs __maybe_unused) | ||
| 737 | { | 738 | { |
| 738 | struct perf_evlist *evlist = &pevlist->evlist; | 739 | struct perf_evlist *evlist = &pevlist->evlist; |
| 739 | PyObject *list = PyList_New(0); | 740 | PyObject *list = PyList_New(0); |
| @@ -765,7 +766,8 @@ free_list: | |||
| 765 | 766 | ||
| 766 | 767 | ||
| 767 | static PyObject *pyrf_evlist__add(struct pyrf_evlist *pevlist, | 768 | static PyObject *pyrf_evlist__add(struct pyrf_evlist *pevlist, |
| 768 | PyObject *args, PyObject *kwargs __used) | 769 | PyObject *args, |
| 770 | PyObject *kwargs __maybe_unused) | ||
| 769 | { | 771 | { |
| 770 | struct perf_evlist *evlist = &pevlist->evlist; | 772 | struct perf_evlist *evlist = &pevlist->evlist; |
| 771 | PyObject *pevsel; | 773 | PyObject *pevsel; |
