diff options
author | Cupertino Miranda <[email protected]> | 2024-08-19 16:11:29 +0100 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-08-19 15:30:29 -0700 |
commit | d9075ac631ce0c5c2c17aa6221282a7c4ba8fa70 (patch) | |
tree | 12748c4e176d443b714176f6ecbbe384e11aef91 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2aa93695081d4bd62350b41d58684d802be4563f (diff) |
selftest/bpf: Adapt inline asm operand constraint for GCC support
GCC errors when compiling tailcall_bpf2bpf_hierarchy2.c and
tailcall_bpf2bpf_hierarchy3.c with the following error:
progs/tailcall_bpf2bpf_hierarchy2.c: In function 'tailcall_bpf2bpf_hierarchy_2':
progs/tailcall_bpf2bpf_hierarchy2.c:66:9: error: input operand constraint contains '+'
66 | asm volatile (""::"r+"(ret));
| ^~~
Changed implementation to make use of __sink macro that abstracts the
desired behaviour.
The proposed change seems valid for both GCC and CLANG.
Signed-off-by: Cupertino Miranda <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions