mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim API
[ Upstream commit 93ee1eb85e28d1e35bb059c1f5965d65d5fc83c2 ] LIBBPF_API annotation seems missing on libbpf_set_memlock_rlim API, so add it to make this API callable from libbpf's shared library version. Fixes:e542f2c4cd("libbpf: Auto-bump RLIMIT_MEMLOCK if kernel needs it for BPF") Fixes:ab9a5a05dc("libbpf: fix up few libbpf.map problems") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20240201172027.604869-3-andrii@kernel.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Sasha Levin
parent
4f4f1e2dee
commit
fed6a1df67
@@ -35,7 +35,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int libbpf_set_memlock_rlim(size_t memlock_bytes);
|
LIBBPF_API int libbpf_set_memlock_rlim(size_t memlock_bytes);
|
||||||
|
|
||||||
struct bpf_map_create_opts {
|
struct bpf_map_create_opts {
|
||||||
size_t sz; /* size of this struct for forward/backward compatibility */
|
size_t sz; /* size of this struct for forward/backward compatibility */
|
||||||
|
|||||||
Reference in New Issue
Block a user