Skip to contentSkip to conversation

perf thread: Don't include symbol.h, symbol_conf.h is enough

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 9, 2019 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  e22c1c751140aeacc5bba9596d7d5a21c5acbd8c
Gitweb:     https://git.kernel.org/tip/e22c1c751140aeacc5bba9596d7d5a21c5acbd8c
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 28 Jan 2019 00:07:40 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 6 Feb 2019 10:00:38 -0300

perf thread: Don't include symbol.h, symbol_conf.h is enough

Also add stdio.h to get the FILE definition.

---
 tools/perf/util/thread.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tools/perf/util/thread.h +4 -1
index 856cf1a9040a..8276ffeec556 100644
@@ -5,14 +5,17 @@
 #include <linux/refcount.h>
 #include <linux/rbtree.h>
 #include <linux/list.h>
+#include <stdio.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include "srccode.h"
-#include "symbol.h"
+#include "symbol_conf.h"
 #include <strlist.h>
 #include <intlist.h>
 #include "rwsem.h"
 
+struct addr_location;
+struct map;
 struct namespaces_event;
 struct thread_stack;
 struct unwind_libunwind_ops;