Skip to content

Commit 7c0afca

Browse files
rddunlapAlexei Starovoitov
authored andcommitted
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
1 parent f9b7ff0 commit 7c0afca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/bpf/preload/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config USERMODE_DRIVER
66
menuconfig BPF_PRELOAD
77
bool "Preload BPF file system with kernel specific program and map iterators"
88
depends on BPF
9+
depends on BPF_SYSCALL
910
# The dependency on !COMPILE_TEST prevents it from being enabled
1011
# in allmodconfig or allyesconfig configurations
1112
depends on !COMPILE_TEST

0 commit comments

Comments
 (0)