diff options
author | Andrii Nakryiko <[email protected]> | 2023-03-08 21:40:12 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-03-10 08:14:07 -0800 |
commit | 2498e6231bfd44f8f85afbc838b37441551a4028 (patch) | |
tree | 5c82ffe818a242f906b6aa306c28c4b37091059b /tools/testing/selftests/bpf/progs/recvmsg6_prog.c | |
parent | 63d78b7e8ca2d0eb8c687a355fa19d01b6fcc723 (diff) |
selftests/bpf: prevent unused variable warning in bpf_for()
Add __attribute__((unused)) to inner __p variable inside bpf_for(),
bpf_for_each(), and bpf_repeat() macros to avoid compiler warnings about
unused variable.
Reported-by: Tejun Heo <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg6_prog.c')
0 files changed, 0 insertions, 0 deletions