Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libbpf: Export bpf_object__prepare symbol

Add missing LIBBPF_API macro for bpf_object__prepare function to enable
its export. libbpf.map had bpf_object__prepare already listed.

Fixes: 1315c28ed809 ("libbpf: Split bpf object load into prepare/load")
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250819215119.37795-1-mykyta.yatsenko5@gmail.com

authored by

Mykyta Yatsenko and committed by
Daniel Borkmann
2693227c b5bbbb70

+1 -1
+1 -1
tools/lib/bpf/libbpf.h
··· 252 252 * @return 0, on success; negative error code, otherwise, error code is 253 253 * stored in errno 254 254 */ 255 - int bpf_object__prepare(struct bpf_object *obj); 255 + LIBBPF_API int bpf_object__prepare(struct bpf_object *obj); 256 256 257 257 /** 258 258 * @brief **bpf_object__load()** loads BPF object into kernel.