mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
selftest/bpf: fix backported test_select_reuseport selftest changes
Fix up RET_IF as CHECK macro to make selftests compile again.
Fixes: b911c5e868 ("selftests: bpf: Reset global state between reuseport test runs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35d9107ad3
commit
aee43146cc
1 changed files with 2 additions and 2 deletions
|
|
@ -668,12 +668,12 @@ static void cleanup_per_test(void)
|
|||
|
||||
for (i = 0; i < NR_RESULTS; i++) {
|
||||
err = bpf_map_update_elem(result_map, &i, &zero, BPF_ANY);
|
||||
RET_IF(err, "reset elem in result_map",
|
||||
CHECK(err, "reset elem in result_map",
|
||||
"i:%u err:%d errno:%d\n", i, err, errno);
|
||||
}
|
||||
|
||||
err = bpf_map_update_elem(linum_map, &zero, &zero, BPF_ANY);
|
||||
RET_IF(err, "reset line number in linum_map", "err:%d errno:%d\n",
|
||||
CHECK(err, "reset line number in linum_map", "err:%d errno:%d\n",
|
||||
err, errno);
|
||||
|
||||
for (i = 0; i < REUSEPORT_ARRAY_SIZE; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue