]> Git Repo - J-linux.git/commitdiff
bpf: BPF_PRELOAD depends on BPF_SYSCALL
authorRandy Dunlap <[email protected]>
Thu, 5 Nov 2020 19:51:09 +0000 (11:51 -0800)
committerAlexei Starovoitov <[email protected]>
Fri, 6 Nov 2020 02:49:29 +0000 (18:49 -0800)
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 <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
kernel/bpf/preload/Kconfig

index ace49111d3a3669b776944b327375cc2d939e78c..26bced2624738021c7a42888e9204228f31e028c 100644 (file)
@@ -6,6 +6,7 @@ config USERMODE_DRIVER
 menuconfig BPF_PRELOAD
        bool "Preload BPF file system with kernel specific program and map iterators"
        depends on BPF
+       depends on BPF_SYSCALL
        # The dependency on !COMPILE_TEST prevents it from being enabled
        # in allmodconfig or allyesconfig configurations
        depends on !COMPILE_TEST
This page took 0.047493 seconds and 4 git commands to generate.