Re: linux-next: Tree for Sep 28 (kernel/bpf/verifier.c)
From: Randy Dunlap
Date: Mon Sep 28 2020 - 13:35:32 EST
On 9/28/20 4:55 AM, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20200925:
>
when CONFIG_NET is not set/enabled:
../kernel/bpf/verifier.c:3990:13: error: ‘btf_sock_ids’ undeclared here (not in a function); did you mean ‘bpf_sock_ops’?
.btf_id = &btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMON],
^~~~~~~~~~~~
bpf_sock_ops
CC kernel/time/tick-oneshot.o
../kernel/bpf/verifier.c:3990:26: error: ‘BTF_SOCK_TYPE_SOCK_COMMON’ undeclared here (not in a function); did you mean ‘PTR_TO_SOCK_COMMON’?
.btf_id = &btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMON],
^~~~~~~~~~~~~~~~~~~~~~~~~
PTR_TO_SOCK_COMMON
--
~Randy
Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>