perf tools: Use __maybe_used for unused variables
[deliverable/linux.git] / tools / perf / util / python.c
index 27187f0b71f092e3a406dec7a7ace05762612c3f..ca85444bcfbfda1e35a018bd586f42dbfb8eff7f 100644 (file)
@@ -672,7 +672,7 @@ struct pyrf_evlist {
 };
 
 static int pyrf_evlist__init(struct pyrf_evlist *pevlist,
-                            PyObject *args, PyObject *kwargs __used)
+                            PyObject *args, PyObject *kwargs __maybe_unused)
 {
        PyObject *pcpus = NULL, *pthreads = NULL;
        struct cpu_map *cpus;
@@ -733,7 +733,8 @@ static PyObject *pyrf_evlist__poll(struct pyrf_evlist *pevlist,
 }
 
 static PyObject *pyrf_evlist__get_pollfd(struct pyrf_evlist *pevlist,
-                                        PyObject *args __used, PyObject *kwargs __used)
+                                        PyObject *args __maybe_unused,
+                                        PyObject *kwargs __maybe_unused)
 {
        struct perf_evlist *evlist = &pevlist->evlist;
         PyObject *list = PyList_New(0);
@@ -765,7 +766,8 @@ free_list:
 
 
 static PyObject *pyrf_evlist__add(struct pyrf_evlist *pevlist,
-                                 PyObject *args, PyObject *kwargs __used)
+                                 PyObject *args,
+                                 PyObject *kwargs __maybe_unused)
 {
        struct perf_evlist *evlist = &pevlist->evlist;
        PyObject *pevsel;
This page took 0.024924 seconds and 5 git commands to generate.