Skip to content
Commit 7f94208c authored by YueHaibing's avatar YueHaibing Committed by Daniel Borkmann
Browse files

bpf: Fix build error without CONFIG_INET



If CONFIG_INET is not set, building fails:

kernel/bpf/verifier.o: In function `check_mem_access':
verifier.c: undefined reference to `bpf_xdp_sock_is_valid_access'
kernel/bpf/verifier.o: In function `convert_ctx_accesses':
verifier.c: undefined reference to `bpf_xdp_sock_convert_ctx_access'

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: fada7fdc

 ("bpf: Allow bpf_map_lookup_elem() on an xskmap")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 69d96519
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment