diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2019-10-01 07:33:07 -0400 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-10-31 16:39:15 -0400 |
commit | 04ec044b7d30800296824783df7d9728d16d7567 (patch) | |
tree | 3ce7fec736f74dc0f7303e259dbfaed391d8b7f1 | |
parent | 6bd7cf66578fae18c26d92115058482cc74ca71b (diff) |
samples/bpf: fix build by setting HAVE_ATTR_TEST to zero
To remove that test_attr__{enabled/open} are used by perf-sys.h, we
set HAVE_ATTR_TEST to zero.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: KP Singh <kpsingh@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: http://lore.kernel.org/bpf/20191001113307.27796-3-bjorn.topel@gmail.com
-rw-r--r-- | samples/bpf/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 1d9be26b4edd..42b571cde177 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile | |||
@@ -176,6 +176,7 @@ KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/bpf/ | |||
176 | KBUILD_HOSTCFLAGS += -I$(srctree)/tools/testing/selftests/bpf/ | 176 | KBUILD_HOSTCFLAGS += -I$(srctree)/tools/testing/selftests/bpf/ |
177 | KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/ -I$(srctree)/tools/include | 177 | KBUILD_HOSTCFLAGS += -I$(srctree)/tools/lib/ -I$(srctree)/tools/include |
178 | KBUILD_HOSTCFLAGS += -I$(srctree)/tools/perf | 178 | KBUILD_HOSTCFLAGS += -I$(srctree)/tools/perf |
179 | KBUILD_HOSTCFLAGS += -DHAVE_ATTR_TEST=0 | ||
179 | 180 | ||
180 | HOSTCFLAGS_bpf_load.o += -I$(objtree)/usr/include -Wno-unused-variable | 181 | HOSTCFLAGS_bpf_load.o += -I$(objtree)/usr/include -Wno-unused-variable |
181 | 182 | ||