Skip to content

Commit 2693227

Browse files
mykyta5borkmann
authored andcommitted
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: 1315c28 ("libbpf: Split bpf object load into prepare/load") Signed-off-by: Mykyta Yatsenko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent b5bbbb7 commit 2693227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/libbpf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ bpf_object__open_mem(const void *obj_buf, size_t obj_buf_sz,
252252
* @return 0, on success; negative error code, otherwise, error code is
253253
* stored in errno
254254
*/
255-
int bpf_object__prepare(struct bpf_object *obj);
255+
LIBBPF_API int bpf_object__prepare(struct bpf_object *obj);
256256

257257
/**
258258
* @brief **bpf_object__load()** loads BPF object into kernel.

0 commit comments

Comments
 (0)