summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/str_error.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2025-10-01 10:13:23 -0700
committerAlexei Starovoitov <ast@kernel.org>2025-10-01 15:27:25 -0700
commitd05ab6181be0060ca259a49e69de9bc95b19edb7 (patch)
treebee96424cc8d116332b7218618fc26cd30de331e /tools/lib/bpf/str_error.h
parent44d42bd80804d117fd83b849820e26dafd25a5f9 (diff)
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>
Diffstat (limited to 'tools/lib/bpf/str_error.h')
-rw-r--r--tools/lib/bpf/str_error.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/lib/bpf/str_error.h b/tools/lib/bpf/str_error.h
index 53e7fbffc13e..d4c82eec034d 100644
--- a/tools/lib/bpf/str_error.h
+++ b/tools/lib/bpf/str_error.h
@@ -2,10 +2,6 @@
#ifndef __LIBBPF_STR_ERROR_H
#define __LIBBPF_STR_ERROR_H
-#define STRERR_BUFSIZE 128
-
-char *libbpf_strerror_r(int err, char *dst, int len);
-
/**
* @brief **libbpf_errstr()** returns string corresponding to numeric errno
* @param err negative numeric errno