samples/bpf: Clean up samples/bpf build failes
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Dec 2021 23:28:22 +0000 (15:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:29 +0000 (11:03 +0100)
commitc7d36c19cf30f8639d35506bc57bba9483d7741c
treeed7c1bb0f7a1295974f626a3513c585697b10dfc
parent7b4a30bbf8ca59ffb1f0d501d73971658d6c3fdf
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>
samples/bpf/Makefile
samples/bpf/Makefile.target
samples/bpf/hbm_kern.h
samples/bpf/lwt_len_hist_kern.c