Re: [PATCH] libbpf: fix typo in btf__dedup@LIBBPF_0.0.2 definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 9, 2021 at 10:31 PM Vincent Minet <vincent@xxxxxxxxxxxxxxxxx> wrote:
>
> The btf__dedup_deprecated name was misspelled in the definition of the
> compat symbol for btf__dedup. This leads it to be missing from the
> shared library.
>
> This fixes it.
>
> Signed-off-by: Vincent Minet <vincent@xxxxxxxxxxxxxxxxx>
> ---
>  tools/lib/bpf/btf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c
> index e171424192ae..9aa19c89f758 100644
> --- a/tools/lib/bpf/btf.c
> +++ b/tools/lib/bpf/btf.c
> @@ -3107,7 +3107,7 @@ int btf__dedup_v0_6_0(struct btf *btf, const struct btf_dedup_opts *opts)
>         return libbpf_err(err);
>  }
>
> -COMPAT_VERSION(bpf__dedup_deprecated, btf__dedup, LIBBPF_0.0.2)
> +COMPAT_VERSION(btf__dedup_deprecated, btf__dedup, LIBBPF_0.0.2)

Took me a while to even see what changed, it's so subtle :( Thanks for
catching this!

How did you run into this problem? Are you using btf__dedup() for
something? Can you please share some details?

Added

Fixes: 957d350a8b94 ("libbpf: Turn btf_dedup_opts into OPTS-based struct")

and pushed to bpf-next, thanks!

>  int btf__dedup_deprecated(struct btf *btf, struct btf_ext *btf_ext, const void *unused_opts)
>  {
>         LIBBPF_OPTS(btf_dedup_opts, opts, .btf_ext = btf_ext);
> --
> 2.33.1
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux