selftests/bpf: Mark cpumask kfunc declarations as __weak
authorYafang Shao <laoar.shao@gmail.com>
Tue, 6 Feb 2024 08:14:15 +0000 (16:14 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 8 Feb 2024 00:14:19 +0000 (16:14 -0800)
commitba6a6abb3bfa8377bcf386a11077c0533909f9e8
tree2a279297c137645aa92eedc2632d6f675ab179ea
parenta2bff65cfca93f0fe4c5996f55ce8f413e85e4fe
selftests/bpf: Mark cpumask kfunc declarations as __weak

After the series "Annotate kfuncs in .BTF_ids section"[0], kfuncs can be
generated from bpftool. Let's mark the existing cpumask kfunc declarations
__weak so they don't conflict with definitions that will eventually come
from vmlinux.h.

[0]. https://lore.kernel.org/all/cover.1706491398.git.dxu@dxuuu.xyz

Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/bpf/20240206081416.26242-5-laoar.shao@gmail.com
tools/testing/selftests/bpf/progs/cpumask_common.h