Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <andrii@xxxxxxxxxx>: On Sat, 27 Jan 2024 19:50:31 +0100 you wrote: > The generated bpf_helper_defs.h file currently contains definitions > like this for the kernel helpers, which are static objects: > > static void *(*bpf_map_lookup_elem)(void *map, const void *key) = (void *) 1; > > These work well in both clang and GCC because both compilers do > constant propagation with -O1 and higher optimization, resulting in > `call 1' BPF instructions being generated, which are calls to kernel > helpers. > > [...] Here is the summary with links: - bpf: generate const static pointers for kernel helpers https://git.kernel.org/bpf/bpf-next/c/ff2071a7b7fd You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html