Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: testing: selftests: mq_perf_tests: Fix infinite loop on ARM

We can't use a char type to check for a negative return value since char
isn't guaranteed to be signed. Indeed, the char type tends to be unsigned on
ARM.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

authored by

dann frazier and committed by
Shuah Khan
13e634de cd805f36

+1 -2
+1 -2
tools/testing/selftests/mqueue/mq_perf_tests.c
··· 536 536 { 537 537 struct mq_attr attr; 538 538 char *option, *next_option; 539 - int i, cpu; 539 + int i, cpu, rc; 540 540 struct sigaction sa; 541 541 poptContext popt_context; 542 - char rc; 543 542 void *retval; 544 543 545 544 main_thread = pthread_self();