Skip to content
Commit 9ff79af3 authored by Song Liu's avatar Song Liu Committed by Daniel Borkmann
Browse files

selftests/bpf: Fix compilation error of bpf_iter_task_stack.c



BPF selftests show a compilation error as follows:

  libbpf: invalid relo for 'entries' in special section 0xfff2; forgot to
  initialize global var?..

Fix it by initializing 'entries' to zeros.

Fixes: c7568114 ("selftests/bpf: Add bpf_iter test with bpf_get_task_stack()")
Reported-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200703181719.3747072-1-songliubraving@fb.com
parent 8ae4121b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment