diff options
author | Mike Rapoport (IBM) <rppt@kernel.org> | 2023-06-22 12:19:54 +0300 |
---|---|---|
committer | Mike Rapoport (IBM) <rppt@kernel.org> | 2023-06-27 18:00:29 +0300 |
commit | 82befbbc285368bc15b3ddea06088bfafb41d1ac (patch) | |
tree | 1af5eb049bc76e534c9f94db2769369dbb4f89fd | |
parent | a0d374a209c1dbd2a07c92585660dd059671d6ce (diff) | |
download | linux-jitalloc/v2.3.tar.gz |
bpf: remove CONFIG_BPF_JIT dependcy on CONFIG_MODULES ofjitalloc/v2.3
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 2dfe1079f7727..9657bfe1344df 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -41,7 +41,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 |