mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
perf bpf: No need to include compiler.h when HAVE_LIBBPF_SUPPORT is true
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
a527c2c1e2
commit
cff6241464
@ -3,7 +3,6 @@
|
|||||||
#define __PERF_BPF_MAP_H 1
|
#define __PERF_BPF_MAP_H 1
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <linux/compiler.h>
|
|
||||||
struct bpf_map;
|
struct bpf_map;
|
||||||
|
|
||||||
#ifdef HAVE_LIBBPF_SUPPORT
|
#ifdef HAVE_LIBBPF_SUPPORT
|
||||||
@ -12,6 +11,8 @@ int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
|
||||||
static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
|
static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user