summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-10-26 22:02:23 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-10-31 15:06:34 +0100
commit08043330167f1e21abe60ff7e124ed87d4fd029d (patch)
tree590a3aa1881a5d9ab15150fbe54eb4c283a8ef42
parentperf bpf: No need to include headers just use forward declarations (diff)
downloadlinux-08043330167f1e21abe60ff7e124ed87d4fd029d.tar.xz
linux-08043330167f1e21abe60ff7e124ed87d4fd029d.zip
perf branch: Remove some needless headers, add a needed one
map_symbol.h is needed because we have structs that contains 'struct addr_map_symbol', so add it, remove the others. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/branch.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/util/branch.h b/tools/perf/util/branch.h
index f838b23db180..94f36a187fe7 100644
--- a/tools/perf/util/branch.h
+++ b/tools/perf/util/branch.h
@@ -7,11 +7,9 @@
* detected in at least musl libc, used in Alpine Linux. -acme
*/
#include <stdio.h>
-#include <stdint.h>
-#include <linux/compiler.h>
-#include <linux/stddef.h>
#include <linux/perf_event.h>
#include <linux/types.h>
+#include "util/map_symbol.h"
#include "event.h"
struct branch_flags {