Re: [PATCH bpf-next] bpf: Fix bpf-next builds without CONFIG_BPF_EVENTS

From: Alexei Starovoitov
Date: Wed Aug 25 2021 - 22:45:58 EST


On Wed, Aug 25, 2021 at 6:48 PM Daniel Xu <dxu@xxxxxxxxx> wrote:
>
> This commit fixes linker errors along the lines of:
>
> s390-linux-ld: task_iter.c:(.init.text+0xa4): undefined reference to `btf_task_struct_ids'`
>
> Fix by defining btf_task_struct_ids unconditionally in kernel/bpf/btf.c
> since there exists code that unconditionally uses btf_task_struct_ids.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Daniel Xu <dxu@xxxxxxxxx>

Applied. Thanks