Re: [PATCH bpf-next] selftests/bpf: fix a clang deprecated-declarations compilation error

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

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Thu, 17 Feb 2022 11:40:05 -0800 you wrote:
> Build the kernel and selftest with clang compiler with LLVM=1,
>   make -j LLVM=1
>   make -C tools/testing/selftests/bpf -j LLVM=1
> 
> I hit the following selftests/bpf compilation error:
>   In file included from test_cpp.cpp:3:
>   /.../tools/testing/selftests/bpf/tools/include/bpf/libbpf.h:73:8:
>     error: 'relaxed_core_relocs' is deprecated: libbpf v0.6+: field has no effect [-Werror,-Wdeprecated-declarations]
>   struct bpf_object_open_opts {
>          ^
>   test_cpp.cpp:56:2: note: in implicit move constructor for 'bpf_object_open_opts' first required here
>           LIBBPF_OPTS(bpf_object_open_opts, opts);
>           ^
>   /.../tools/testing/selftests/bpf/tools/include/bpf/libbpf_common.h:77:3: note: expanded from macro 'LIBBPF_OPTS'
>                   (struct TYPE) {                                             \
>                   ^
>   /.../tools/testing/selftests/bpf/tools/include/bpf/libbpf.h:90:2: note: 'relaxed_core_relocs' has been explicitly marked deprecated here
>           LIBBPF_DEPRECATED_SINCE(0, 6, "field has no effect")
>           ^
>   /.../tools/testing/selftests/bpf/tools/include/bpf/libbpf_common.h:24:4: note: expanded from macro 'LIBBPF_DEPRECATED_SINCE'
>                   (LIBBPF_DEPRECATED("libbpf v" # major "." # minor "+: " msg))
>                    ^
>   /.../tools/testing/selftests/bpf/tools/include/bpf/libbpf_common.h:19:47: note: expanded from macro 'LIBBPF_DEPRECATED'
>   #define LIBBPF_DEPRECATED(msg) __attribute__((deprecated(msg)))
> 
> [...]

Here is the summary with links:
  - [bpf-next] selftests/bpf: fix a clang deprecated-declarations compilation error
    https://git.kernel.org/bpf/bpf-next/c/a33c0c792d0a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[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