diff options
| author | Beau Belgrave <[email protected]> | 2023-10-05 21:57:12 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2023-10-17 21:07:19 +0000 |
| commit | cf5a103c98a6fb9ee3164334cb5502df6360749b (patch) | |
| tree | e889b6e33c670b89edd9e7895e541b090d92a378 /drivers/fpga/tests/fpga-region-test.c | |
| parent | selftests: Fix wrong TARGET in kselftest top level Makefile (diff) | |
| download | kernel-cf5a103c98a6fb9ee3164334cb5502df6360749b.tar.gz kernel-cf5a103c98a6fb9ee3164334cb5502df6360749b.zip | |
selftests/user_events: Fix abi_test for BE archs
The abi_test currently uses a long sized test value for enablement
checks. On LE this works fine, however, on BE this results in inaccurate
assert checks due to a bit being used and assuming it's value is the
same on both LE and BE.
Use int type for 32-bit values and long type for 64-bit values to ensure
appropriate behavior on both LE and BE.
Fixes: 60b1af8de8c1 ("tracing/user_events: Add ABI self-test")
Signed-off-by: Beau Belgrave <[email protected]>
Acked-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-region-test.c')
0 files changed, 0 insertions, 0 deletions
