aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rapoport (IBM) <rppt@kernel.org>2024-05-05 19:06:28 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2024-05-14 00:36:29 -0700
commit2c9e5d4a008293407836d29d35dfd4353615bd2f (patch)
tree57adbf37570d251815cc352cd9b234b790e2562a
parent7582b7be16d0ba90e3dbd9575a730cabd9eb852a (diff)
downloadlinux-modules-next.tar.gz
bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES ofmodules-6.10-rc1modules-next
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> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
-rw-r--r--kernel/bpf/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig
index 4100df44c6652..17067dcb43861 100644
--- a/kernel/bpf/Kconfig
+++ b/kernel/bpf/Kconfig
@@ -43,7 +43,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