Skip to content
Commit 611edf1b authored by Yuze Chi's avatar Yuze Chi Committed by Andrii Nakryiko
Browse files

libbpf: Fix is_pow_of_2



Move the correct definition from linker.c into libbpf_internal.h.

Fixes: 0087a681 ("libbpf: Automatically fix up BPF_MAP_TYPE_RINGBUF size, if necessary")
Reported-by: default avatarYuze Chi <chiyuze@google.com>
Signed-off-by: default avatarYuze Chi <chiyuze@google.com>
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220603055156.2830463-1-irogers@google.com
parent e6ff92f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment