]> xenbits.xensource.com Git - people/aperard/linux.git/commit
libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim API
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 1 Feb 2024 17:20:24 +0000 (09:20 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 1 Feb 2024 21:16:11 +0000 (22:16 +0100)
commit93ee1eb85e28d1e35bb059c1f5965d65d5fc83c2
tree42db78e843ce7af0251e565fd25d91004d7b49e3
parent9fa5e1a180aa639fb156a16e453ab820b7e7860b
libbpf: Add missing LIBBPF_API annotation to libbpf_set_memlock_rlim API

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: e542f2c4cd16 ("libbpf: Auto-bump RLIMIT_MEMLOCK if kernel needs it for BPF")
Fixes: ab9a5a05dc48 ("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
tools/lib/bpf/bpf.h