Skip to content

Commit 28800b5

Browse files
mykyta5Kernel Patches Daemon
authored andcommitted
libbpf: export bpf_object__prepare symbol
Add missing LIBBPF_API macro for bpf_object__prepare function to enable its export. Fixes: 1315c28 ("libbpf: Split bpf object load into prepare/load") Signed-off-by: Mykyta Yatsenko <[email protected]>
1 parent 28cde7b commit 28800b5

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)