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>
This commit is contained in:
parent
7582b7be16
commit
2c9e5d4a00
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ config BPF_JIT
|
||||||
bool "Enable BPF Just In Time compiler"
|
bool "Enable BPF Just In Time compiler"
|
||||||
depends on BPF
|
depends on BPF
|
||||||
depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
|
depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
|
||||||
depends on MODULES
|
select EXECMEM
|
||||||
help
|
help
|
||||||
BPF programs are normally handled by a BPF interpreter. This option
|
BPF programs are normally handled by a BPF interpreter. This option
|
||||||
allows the kernel to generate native code when a program is loaded
|
allows the kernel to generate native code when a program is loaded
|
||||||
|
|
Loading…
Add table
Reference in a new issue