diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-12-02 02:28:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-27 13:03:29 +0300 |
commit | c7d36c19cf30f8639d35506bc57bba9483d7741c (patch) | |
tree | ed7c1bb0f7a1295974f626a3513c585697b10dfc /samples/bpf/hbm_kern.h | |
parent | 7b4a30bbf8ca59ffb1f0d501d73971658d6c3fdf (diff) | |
download | linux-c7d36c19cf30f8639d35506bc57bba9483d7741c.tar.xz |
samples/bpf: Clean up samples/bpf build failes
[ Upstream commit 527024f7aeb683ce7ef49b07ef7ce9ecf015288d ]
Remove xdp_samples_user.o rule redefinition which generates Makefile
warning and instead override TPROGS_CFLAGS. This seems to work fine when
building inside selftests/bpf.
That was one big head-scratcher before I found that generic
Makefile.target hid this surprising specialization for for xdp_samples_user.o.
Main change is to use actual locally installed libbpf headers.
Also drop printk macro re-definition (not even used!).
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211201232824.3166325-8-andrii@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples/bpf/hbm_kern.h')
-rw-r--r-- | samples/bpf/hbm_kern.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/samples/bpf/hbm_kern.h b/samples/bpf/hbm_kern.h index 722b3fadb467..1752a46a2b05 100644 --- a/samples/bpf/hbm_kern.h +++ b/samples/bpf/hbm_kern.h @@ -9,8 +9,6 @@ * Include file for sample Host Bandwidth Manager (HBM) BPF programs */ #define KBUILD_MODNAME "foo" -#include <stddef.h> -#include <stdbool.h> #include <uapi/linux/bpf.h> #include <uapi/linux/if_ether.h> #include <uapi/linux/if_packet.h> |