From: Arnaldo Carvalho de Melo Date: Wed, 26 Oct 2022 16:50:17 +0000 (-0300) Subject: perf bpf: No need to include compiler.h when HAVE_LIBBPF_SUPPORT is true X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cff624146450bd25a1acea0439b7654167e0f722;p=linux.git perf bpf: No need to include compiler.h when HAVE_LIBBPF_SUPPORT is true Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/bpf_map.h b/tools/perf/util/bpf_map.h index d6abd5e47af8d..c2f7c13cba23f 100644 --- 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 -#include struct bpf_map; #ifdef HAVE_LIBBPF_SUPPORT @@ -12,6 +11,8 @@ int bpf_map__fprintf(struct bpf_map *map, FILE *fp); #else +#include + static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused) { return 0;