perf bpf: Remove misplaced __maybe_unused attribute
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jan 2018 13:42:55 +0000 (10:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Jan 2018 09:37:28 +0000 (06:37 -0300)
The bpf__setup_stdout() function uses that evlist argument, remove the
misleading __maybe_unused attribute.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-7vbhhzbd33nvdm7l35gdfryt@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-loader.c

index ab2598af91ebbf712fba7f7a567535329fb5fbce..af7ad814b2c3e06bb282ede5fa772a0592f5e162 100644 (file)
@@ -1533,7 +1533,7 @@ int bpf__apply_obj_config(void)
                        (strcmp("__bpf_stdout__",       \
                                bpf_map__name(pos)) == 0))
 
-int bpf__setup_stdout(struct perf_evlist *evlist __maybe_unused)
+int bpf__setup_stdout(struct perf_evlist *evlist)
 {
        struct bpf_map_priv *tmpl_priv = NULL;
        struct bpf_object *obj, *tmp;