Skip to content

Commit 2c9e5d4

Browse files
rpptmcgrof
authored andcommitted
bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of
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>
1 parent 7582b7b commit 2c9e5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ config BPF_JIT
4343
bool "Enable BPF Just In Time compiler"
4444
depends on BPF
4545
depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
46-
depends on MODULES
46+
select EXECMEM
4747
help
4848
BPF programs are normally handled by a BPF interpreter. This option
4949
allows the kernel to generate native code when a program is loaded

0 commit comments

Comments
 (0)