]> git.itanic.dy.fi Git - linux-stable/commit
samples: bpf: Fix build error
authorMatteo Croce <mcroce@redhat.com>
Mon, 11 May 2020 11:32:34 +0000 (13:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:19:31 +0000 (08:19 +0200)
commitd0de1cab5a5a9a7103d73888e88056b3e948b275
treebdd988aad69125b58ff0ee70f15ffa08557c7af9
parent4d9248f989ecf29a4c3e5c525cccdacb7708e11f
samples: bpf: Fix build error

[ Upstream commit 23ad04669f81f958e9a4121b0266228d2eb3c357 ]

GCC 10 is very strict about symbol clash, and lwt_len_hist_user contains
a symbol which clashes with libbpf:

/usr/bin/ld: samples/bpf/lwt_len_hist_user.o:(.bss+0x0): multiple definition of `bpf_log_buf'; samples/bpf/bpf_load.o:(.bss+0x8c0): first defined here
collect2: error: ld returned 1 exit status

bpf_log_buf here seems to be a leftover, so removing it.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200511113234.80722-1-mcroce@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
samples/bpf/lwt_len_hist_user.c