diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-24 15:45:21 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-25 16:26:40 -0300 |
commit | bd70462062f36bec9d93d3900addfca4f8ec718f (patch) | |
tree | 1bdc37d1d2e002c656b0dd2aed7cf41d10c7c207 /tools/perf/util/parse-events.y | |
parent | ca1252779f48ece225c6003e01c675abb91cf1b4 (diff) | |
download | lwn-bd70462062f36bec9d93d3900addfca4f8ec718f.tar.gz lwn-bd70462062f36bec9d93d3900addfca4f8ec718f.zip |
perf evlist: Remove unused perf_evlist__fprintf() method
Ditch it, noone is using it, one more stdio.h include in a hot header.
Fix the fallout in parse-events.y, where we end up using a FILE pointer,
I think due to YYDEBUG being set and in some places, like Amazon Linux 1
we don't get stdio.h included by luck, like in most other places, add a
explicit stdio.h include directive.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-37k5q0lhdbo2hvvfbnnzn7og@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.y')
-rw-r--r-- | tools/perf/util/parse-events.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index f1c36ed1cf36..65809ad67808 100644 --- a/tools/perf/util/parse-events.y +++ b/tools/perf/util/parse-events.y @@ -9,6 +9,7 @@ #define YYDEBUG 1 #include <fnmatch.h> +#include <stdio.h> #include <linux/compiler.h> #include <linux/list.h> #include <linux/types.h> |