linux_dsm_epyc7002/tools/testing/selftests/powerpc
Peter Senna Tschudin 0e27d27e0d selftests/powerpc: Return false instead of -1 in require_paranoia_below()
Returning a negative value for a boolean function seem to have the
undesired effect of returning true. require_paranoia_below() is a
boolean function, but the variable used to store the return value is an
integer, receiving -1 or 0. This patch converts rc to bool, replaces -1
by false, and 0 by true.

mpe: This wasn't exhibiting in practice because the common case, where
we do the comparison of the desired level vs the current value, was
being compiled into a computation based on the result of the comparison,
ie. it wasn't using the default -1 value at all. However that was just
luck and the code is still wrong.

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-11-14 20:06:00 +11:00
..
alignment selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
benchmarks selftests/powerpc: Add Anton's null_syscall benchmark to the selftests 2016-11-14 11:11:51 +11:00
context_switch selftests/powerpc: Test cp_abort during context switch 2016-05-11 21:54:01 +10:00
copyloops powerpc: EX_TABLE macro for exception tables 2016-11-14 11:11:51 +11:00
dscr powerpc: Fix DSCR inheritance over fork() 2015-12-10 21:11:13 +11:00
math selftests/powerpc: Add missing binaries to .gitignores 2016-10-06 22:26:40 +11:00
mm selftests/powerpc: Add a test for PROT_SAO 2016-07-14 20:26:25 +10:00
pmu selftests/powerpc: Return false instead of -1 in require_paranoia_below() 2016-11-14 20:06:00 +11:00
primitives powerpc: Add support for relative exception tables 2016-11-14 11:11:51 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
signal selftests/powerpc: Add missing binaries to .gitignores 2016-10-06 22:26:40 +11:00
stringloops selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes 2016-10-06 22:26:42 +11:00
switch_endian selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
syscalls selftests/powerpc: Add tests of unmuxed IPC calls 2015-10-15 20:32:03 +11:00
tm selftests/powerpc: Add missing binaries to .gitignores 2016-10-06 22:26:40 +11:00
vphn selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
basic_asm.h selftests/powerpc: Test the preservation of FPU and VMX regs across syscall 2016-03-02 23:34:46 +11:00
fpu_asm.h selftests/powerpc: Rework FPU stack placement macros and move to header file 2016-10-04 20:10:11 +11:00
gpr_asm.h selftests/powerpc: Introduce GPR asm helper header file 2016-10-04 20:10:12 +11:00
harness.c selftests/powerpc: Allow tests to extend their kill timeout 2016-10-04 20:10:13 +11:00
instructions.h selftests/powerpc: Test unaligned copy and paste 2016-07-05 23:49:51 +10:00
Makefile selftests/powerpc: Check that signals always get delivered 2016-10-04 20:26:36 +11:00
reg.h selftests/powerpc: Revert Load Monitor Register Tests 2016-11-14 20:05:38 +11:00
subunit.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
utils.c selftests/powerpc: Move pick_online_cpu() up into utils.c 2015-12-17 10:46:41 +11:00
utils.h selftests/powerpc: Allow tests to extend their kill timeout 2016-10-04 20:10:13 +11:00
vmx_asm.h selftests/powerpc: Move VMX stack frame macros to header file 2016-10-04 20:10:12 +11:00
vsx_asm.h selftests/powerpc: Check for VSX preservation across userspace preemption 2016-10-04 20:10:09 +11:00