projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a527c2c
)
perf bpf: No need to include compiler.h when HAVE_LIBBPF_SUPPORT is true
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 26 Oct 2022 16:50:17 +0000
(13:50 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Thu, 27 Oct 2022 19:37:26 +0000
(16:37 -0300)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf_map.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/bpf_map.h
b/tools/perf/util/bpf_map.h
index d6abd5e47af8d7d6e4ea4212c99f5f11d8bc4820..c2f7c13cba23fd2b13a7d8b6d90cfeb6f35f0dc0 100644
(file)
--- a/
tools/perf/util/bpf_map.h
+++ b/
tools/perf/util/bpf_map.h
@@
-3,7
+3,6
@@
#define __PERF_BPF_MAP_H 1
#include <stdio.h>
-#include <linux/compiler.h>
struct bpf_map;
#ifdef HAVE_LIBBPF_SUPPORT
@@
-12,6
+11,8
@@
int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
#else
+#include <linux/compiler.h>
+
static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
{
return 0;