]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: BPF_PRELOAD depends on BPF_SYSCALL
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 5 Nov 2020 19:51:09 +0000 (11:51 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 6 Nov 2020 02:49:29 +0000 (18:49 -0800)
commitb218c228f86e1e775e07284e5e07545909f564e1
tree472e749125b9b55427b60788296883564f27d48b
parent5d4fad845d9f9fd723863b225c4b4a7a01f1092b
bpf: BPF_PRELOAD depends on BPF_SYSCALL

Fix build error when BPF_SYSCALL is not set/enabled but BPF_PRELOAD is
by making BPF_PRELOAD depend on BPF_SYSCALL.

ERROR: modpost: "bpf_preload_ops" [kernel/bpf/preload/bpf_preload.ko] undefined!

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201105195109.26232-1-rdunlap@infradead.org
kernel/bpf/preload/Kconfig