Skip to content

Commit

Permalink
btf: fix build of relocs_read_tgt.c
Browse files Browse the repository at this point in the history
After rebase on master the dummy() function and the core_access
macro was removed. Fix the bitfields test to also use the unused
attribute.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
  • Loading branch information
joamaki committed Mar 29, 2022
1 parent 6dae520 commit 5ff6bbc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Binary file modified internal/btf/testdata/relocs_read_tgt-eb.elf
Binary file not shown.
Binary file modified internal/btf/testdata/relocs_read_tgt-el.elf
Binary file not shown.
4 changes: 1 addition & 3 deletions internal/btf/testdata/relocs_read_tgt.c
Expand Up @@ -27,6 +27,4 @@ struct bits {
u32 g : 30; /* was: u64 g:30 */
};

int dummy() {
return core_access((struct s){}.a) + core_access((struct bits){}.a);
}
struct bits *unused_bits __attribute__((unused));

0 comments on commit 5ff6bbc

Please sign in to comment.