bpf_helpers.h: Define bpf_tail_call_static when building with GCC
authorJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 26 Apr 2024 14:51:58 +0000 (16:51 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 26 Apr 2024 15:10:04 +0000 (17:10 +0200)
commit6e25bcf06af0341691f7058e17e04800f6a19e26
tree28e1c6d15b6bd1941da881beaa8ca72ed4b40fa5
parente51b907d40329d4b4517a155e0bc0bf593d6767d
bpf_helpers.h: Define bpf_tail_call_static when building with GCC

The definition of bpf_tail_call_static in tools/lib/bpf/bpf_helpers.h
is guarded by a preprocessor check to assure that clang is recent
enough to support it.  This patch updates the guard so the function is
compiled when using GCC 13 or later as well.

Tested in bpf-next master. No regressions.

Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240426145158.14409-1-jose.marchesi@oracle.com
tools/lib/bpf/bpf_helpers.h