bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of
authorMike Rapoport (IBM) <rppt@kernel.org>
Sun, 5 May 2024 16:06:28 +0000 (19:06 +0300)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 14 May 2024 07:36:29 +0000 (00:36 -0700)
commit2c9e5d4a008293407836d29d35dfd4353615bd2f
tree57adbf37570d251815cc352cd9b234b790e2562a
parent7582b7be16d0ba90e3dbd9575a730cabd9eb852a
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>
kernel/bpf/Kconfig