libbpf: remove unused libbpf_strerror_r and STRERR_BUFSIZE

libbpf_strerror_r() is not exposed as public API and neither is it used
inside libbpf itself. Remove it altogether.

Same for STRERR_BUFSIZE, it's just an orphaned leftover constant which
we missed to clean up some time earlier.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20251001171326.3883055-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
This commit is contained in:
Andrii Nakryiko
2025-10-01 10:13:23 -07:00
committed by Andrii Nakryiko
parent 33021bb9dd
commit ce015f0184
3 changed files with 0 additions and 30 deletions

View File

@@ -319,8 +319,6 @@ static void pr_perm_msg(int err)
buf);
}
#define STRERR_BUFSIZE 128
/* Copied from tools/perf/util/util.h */
#ifndef zfree
# define zfree(ptr) ({ free(*ptr); *ptr = NULL; })