mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-13 04:48:06 +07:00
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>
This commit is contained in:
parent
cd805f3676
commit
13e634de09
@ -536,10 +536,9 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
struct mq_attr attr;
|
struct mq_attr attr;
|
||||||
char *option, *next_option;
|
char *option, *next_option;
|
||||||
int i, cpu;
|
int i, cpu, rc;
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
poptContext popt_context;
|
poptContext popt_context;
|
||||||
char rc;
|
|
||||||
void *retval;
|
void *retval;
|
||||||
|
|
||||||
main_thread = pthread_self();
|
main_thread = pthread_self();
|
||||||
|
Loading…
Reference in New Issue
Block a user