Skip to content
Commit 9a558d4b authored by Liwei Song's avatar Liwei Song Committed by Bruce Ashfield
Browse files

tools/resolve_btfids: Fix comparison of distinct pointer types warning in resolve_btfids

commit 13c9b702e6cb8e406d5fa6b2dca422fa42d2f13e from
git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git



Add a type cast for set8->pairs to fix below compile warning:

main.c: In function 'sets_patch':
main.c:699:50: warning: comparison of distinct pointer types lacks a cast
  699 |        BUILD_BUG_ON(set8->pairs != &set8->pairs[0].id);
      |                                 ^~

Fixes: 9707ac4f ("tools/resolve_btfids: Refactor set sorting with types from btf_ids.h")
Signed-off-by: default avatarLiwei Song <liwei.song.lsong@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20240722083305.4009723-1-liwei.song.lsong@gmail.com


Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 42b2eec2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment