Skip to content

Commit

Permalink
Merge branch 'correct-recent-gcc-incompatible-changes'
Browse files Browse the repository at this point in the history
Cupertino Miranda says:

====================
Correct recent GCC incompatible changes.

Hi everyone,

Apologies for the previous patches which did not include a cover letter.
My wish was to send 3 indepepdent patches but after the initial mistake lets keep
this as a series although they are all independent from themselves.

The changes in this patch series is related to recovering GCC support to
build the selftests.
A few tests and a makefile change have broken the support for GCC in the
last few months.

Looking forward to your comments.

Best regards,
Cupertino
====================

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko committed Aug 19, 2024
2 parents 955bba7 + d9075ac commit 01ac89d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ progs/test_pkt_md_access.c-CFLAGS := -fno-strict-aliasing
progs/test_sk_lookup.c-CFLAGS := -fno-strict-aliasing
progs/timer_crash.c-CFLAGS := -fno-strict-aliasing
progs/test_global_func9.c-CFLAGS := -fno-strict-aliasing
progs/verifier_nocsr.c-CFLAGS := -fno-strict-aliasing

ifneq ($(LLVM),)
# Silence some warnings when compiled with clang
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ __retval(33)
SEC("tc")
int tailcall_bpf2bpf_hierarchy_2(struct __sk_buff *skb)
{
volatile int ret = 0;
int ret = 0;

subprog_tail0(skb);
subprog_tail1(skb);

asm volatile (""::"r+"(ret));
__sink(ret);
return (count1 << 16) | count0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ __retval(33)
SEC("tc")
int tailcall_bpf2bpf_hierarchy_3(struct __sk_buff *skb)
{
volatile int ret = 0;
int ret = 0;

bpf_tail_call_static(skb, &jmp_table0, 0);

asm volatile (""::"r+"(ret));
__sink(ret);
return ret;
}

Expand Down

0 comments on commit 01ac89d

Please sign in to comment.