提交 cff62414 编写于 作者: A Arnaldo Carvalho de Melo

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

Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 a527c2c1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册