linux/tools/testing/selftests/powerpc/tm
longlong yan bf1d828781 selftests/powerpc: use MAP_FAILED instead of (void *)-1 in tm-signal-context-force-tm
mmap() is documented to return MAP_FAILED on error, but
tm-signal-context-force-tm.c compares the return value against
(void *)-1. Replace these with the standard MAP_FAILED macro for
better readability and type safety.

Signed-off-by: longlong yan <yanlonglong@kylinos.cn>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Reviewed-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260722023428.932-1-yanlonglong@kylinos.cn
2026-09-10 13:16:50 +05:30
..
.gitignore powerpc updates for 5.7 2020-04-05 11:12:59 -07:00
Makefile selftests/powerpc: make sub-folders buildable on their own 2024-04-29 23:54:42 +10:00
settings selftests/powerpc: Turn off timeout setting for benchmarks, dscr, signal, tm 2020-03-25 12:09:30 +11:00
tm-exec.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-fork.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-poison.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-resched-dscr.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-fpu.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-gpr.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-vmx.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-chk-vsx.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-context-force-tm.c selftests/powerpc: use MAP_FAILED instead of (void *)-1 in tm-signal-context-force-tm 2026-09-10 13:16:50 +05:30
tm-signal-msr-resv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
tm-signal-pagefault.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal-sigreturn-nt.c selftests/powerpc: Return errors from all tests 2024-11-07 22:36:31 +11:00
tm-signal-stack.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-signal.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
tm-sigreturn.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-syscall-asm.S selftests/powerpc: Add scv versions of the basic TM syscall tests 2021-09-13 22:34:11 +10:00
tm-syscall.c selftests/powerpc: Add scv versions of the basic TM syscall tests 2021-09-13 22:34:11 +10:00
tm-tar.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-tmspr.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-trap.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-unavailable.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-vmx-unavail.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm-vmxcopy.c selftests: Skip TM tests on synthetic TM implementations 2021-08-26 21:21:06 +10:00
tm.h selftests/powerpc/tm: Fix tcheck() reading uninitialised CR value 2026-09-10 13:12:09 +05:30