Commit 338466c
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 a19d774 commit 338466c
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 | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
| 699 | + | |
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| |||
| 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