Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf bpf: No need to include compiler.h when HAVE_LIBBPF_SUPPORT is true

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+2 -1
+2 -1
tools/perf/util/bpf_map.h
··· 3 3 #define __PERF_BPF_MAP_H 1 4 4 5 5 #include <stdio.h> 6 - #include <linux/compiler.h> 7 6 struct bpf_map; 8 7 9 8 #ifdef HAVE_LIBBPF_SUPPORT ··· 10 11 int bpf_map__fprintf(struct bpf_map *map, FILE *fp); 11 12 12 13 #else 14 + 15 + #include <linux/compiler.h> 13 16 14 17 static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused) 15 18 {