Skip to contentSkip to conversation

perf bpf: Remove misplaced __maybe_unused attribute

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jan 24, 2018 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  fcbc3ca3bb41d91b8f311defd7252007a99ebf78
Gitweb:     https://git.kernel.org/tip/fcbc3ca3bb41d91b8f311defd7252007a99ebf78
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 22 Jan 2018 10:42:55 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 23 Jan 2018 09:51:50 -0300

perf bpf: Remove misplaced __maybe_unused attribute

The bpf__setup_stdout() function uses that evlist argument, remove the misleading __maybe_unused attribute.

---
 tools/perf/util/bpf-loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/bpf-loader.c +1 -1
index ab2598a..af7ad81 100644
@@ -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;