mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 20:53:03 +02:00
bpf: Drop __weak from bpf_jit_alloc_exec() and bpf_jit_free_exec()
bpf_jit_alloc_exec() and bpf_jit_free_exec() are wrappers for the corresponding execmem APIs. Architectures define the properties of the memory range needed by BPF in their initialization of execmem and don't need to override neither of them. Drop the __weak qualifier from bpf_jit_alloc_exec() and bpf_jit_free_exec(). Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Acked-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/bpf/20260716-execmem-x86-rox-bpf-v0-v3-2-4e76158c01c5@kernel.org Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
parent
810a273919
commit
4946eb5d37
|
|
@ -1116,12 +1116,12 @@ void bpf_jit_uncharge_modmem(u32 size)
|
|||
atomic_long_sub(size, &bpf_jit_current);
|
||||
}
|
||||
|
||||
void *__weak bpf_jit_alloc_exec(unsigned long size)
|
||||
void *bpf_jit_alloc_exec(unsigned long size)
|
||||
{
|
||||
return execmem_alloc(EXECMEM_BPF, size);
|
||||
}
|
||||
|
||||
void __weak bpf_jit_free_exec(void *addr)
|
||||
void bpf_jit_free_exec(void *addr)
|
||||
{
|
||||
execmem_free(addr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user