diff options
author | Mike Rapoport (IBM) <rppt@kernel.org> | 2023-06-22 12:19:54 +0300 |
---|---|---|
committer | Mike Rapoport (IBM) <rppt@kernel.org> | 2023-09-15 14:52:51 +0300 |
commit | 8d3e77dc8e980d26d8847e292e82d6443e7a6aac (patch) | |
tree | 0f402a39638e6ce0166bbf8257c40f1ba682ec22 | |
parent | ad9f0c6ef23bc9c34c658269794fae0391beb7e5 (diff) | |
download | linux-jitalloc/v2.4.tar.gz |
bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES ofjitalloc/v2.4
BPF just-in-time compiler depended on CONFIG_MODULES because it used
module_alloc() to allocate memory for the generated code.
Since code allocations are now implemented with execmem, drop dependency of
CONFIG_BPF_JIT on CONFIG_MODULES and make it select CONFIG_EXECMEM.
Suggested-by: Björn Töpel <bjorn@kernel.org>
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
-rw-r--r-- | kernel/bpf/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig index 6a906ff930065..5be11c906f936 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -42,7 +42,7 @@ config BPF_JIT bool "Enable BPF Just In Time compiler" depends on BPF depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT - depends on MODULES + select EXECMEM help BPF programs are normally handled by a BPF interpreter. This option allows the kernel to generate native code when a program is loaded |