Commit b349c6e
committed
selftests/bpf: Fix kfunc_call/kfunc_call_test4 on 32-bit
This test currently fails on armhf:
verify_success:PASS:skel 0 nsec
verify_success:PASS:bpf_object__find_program_by_name 0 nsec
verify_success:PASS:kfunc_call_test4 0 nsec
verify_success:FAIL:retval unexpected retval: actual 4294966063 != expected -1234
torvalds#143/11 kfunc_call/kfunc_call_test4:FAIL
The problem can be traced to using 'long' as a 64-bit type in bpf_testmod
function bpf_kfunc_call_test4(), to force 64-bit signed arithmetic, which
breaks down on 32-bit systems.
Fix by explicitly using 's64' rather than long.
Signed-off-by: Tony Ambardar <[email protected]>1 parent 5851f9e commit b349c6e
File tree
3 files changed
+4
-4
lines changed- tools/testing/selftests/bpf
- progs
- test_kmods
3 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments