From 775aff2e69c4d2101c8b2f4e0e4219f1ed1a41a8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 29 Jun 2015 16:32:46 -0400 Subject: [PATCH] Cleanup: cast poll delay return value to void Signed-off-by: Mathieu Desnoyers --- tests/regression/rcutorture.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/regression/rcutorture.h b/tests/regression/rcutorture.h index f8548d8..a2411d7 100644 --- a/tests/regression/rcutorture.h +++ b/tests/regression/rcutorture.h @@ -129,7 +129,7 @@ void *rcu_read_perf_test(void *arg) uatomic_inc(&nthreadsrunning); put_thread_offline(); while (goflag == GOFLAG_INIT) - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); put_thread_online(); while (goflag == GOFLAG_RUN) { for (i = 0; i < RCU_READ_RUN; i++) { @@ -167,7 +167,7 @@ void *rcu_update_perf_test(void *arg) } uatomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); while (goflag == GOFLAG_RUN) { synchronize_rcu(); n_updates_local++; @@ -190,7 +190,7 @@ void perftestrun(int nthreads, int nreaders, int nupdaters) cmm_smp_mb(); while (uatomic_read(&nthreadsrunning) < nthreads) - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); goflag = GOFLAG_RUN; cmm_smp_mb(); sleep(duration); @@ -289,7 +289,7 @@ void *rcu_read_stress_test(void *arg) rcu_register_thread(); put_thread_offline(); while (goflag == GOFLAG_INIT) - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); put_thread_online(); while (goflag == GOFLAG_RUN) { rcu_read_lock(); @@ -345,7 +345,7 @@ void *rcu_update_stress_test(void *arg) struct rcu_head rh; while (goflag == GOFLAG_INIT) - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); while (goflag == GOFLAG_RUN) { i = rcu_stress_idx + 1; if (i >= RCU_STRESS_PIPE_LEN) @@ -396,10 +396,10 @@ void *rcu_fake_update_stress_test(void *arg) } } while (goflag == GOFLAG_INIT) - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); while (goflag == GOFLAG_RUN) { synchronize_rcu(); - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); } return NULL; } -- 2.34.1