diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-12-02 02:28:22 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-03 02:23:40 +0300 |
commit | 527024f7aeb683ce7ef49b07ef7ce9ecf015288d (patch) | |
tree | 0f5dfede9d448a1c72e77afdc284f4052e7f9df6 /samples/bpf/lwt_len_hist_kern.c | |
parent | 186d1a86003ddcf0ec9e85e17ece868663106639 (diff) | |
download | linux-527024f7aeb683ce7ef49b07ef7ce9ecf015288d.tar.xz |
samples/bpf: Clean up samples/bpf build failes
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
Diffstat (limited to 'samples/bpf/lwt_len_hist_kern.c')
-rw-r--r-- | samples/bpf/lwt_len_hist_kern.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/samples/bpf/lwt_len_hist_kern.c b/samples/bpf/lwt_len_hist_kern.c index 9ed63e10e170..1fa14c54963a 100644 --- a/samples/bpf/lwt_len_hist_kern.c +++ b/samples/bpf/lwt_len_hist_kern.c @@ -16,13 +16,6 @@ #include <uapi/linux/in.h> #include <bpf/bpf_helpers.h> -# define printk(fmt, ...) \ - ({ \ - char ____fmt[] = fmt; \ - bpf_trace_printk(____fmt, sizeof(____fmt), \ - ##__VA_ARGS__); \ - }) - struct bpf_elf_map { __u32 type; __u32 size_key; |