OSDN Git Service

perf branch: Remove some needless headers, add a needed one
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Oct 2022 20:02:23 +0000 (17:02 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 31 Oct 2022 14:06:34 +0000 (11:06 -0300)
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>
tools/perf/util/branch.h

index f838b23..94f36a1 100644 (file)
@@ -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 {