X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_mcslock.c;h=ddccaafa92420623c16784528031d9ddced10451;hb=25d5c40f252fb77ed78a7baa5d6e54912ad83941;hp=ed384b81d92bc1441a51a905a8b1d03582c822fa;hpb=32dcb9fd2a22b4303ed40375262f295a13c15d4a;p=dpdk.git diff --git a/app/test/test_mcslock.c b/app/test/test_mcslock.c index ed384b81d9..ddccaafa92 100644 --- a/app/test/test_mcslock.c +++ b/app/test/test_mcslock.c @@ -50,7 +50,7 @@ static unsigned int count; static rte_atomic32_t synchro; static int -test_mcslock_per_core(__attribute__((unused)) void *arg) +test_mcslock_per_core(__rte_unused void *arg) { /* Per core me node. */ rte_mcslock_t ml_me = RTE_PER_LCORE(_ml_me); @@ -148,7 +148,7 @@ test_mcslock_perf(void) * return immediately. */ static int -test_mcslock_try(__attribute__((unused)) void *arg) +test_mcslock_try(__rte_unused void *arg) { /**< Per core me node. */ rte_mcslock_t ml_me = RTE_PER_LCORE(_ml_me); @@ -225,8 +225,8 @@ test_mcslock(void) RTE_LCORE_FOREACH_SLAVE(i) { rte_eal_remote_launch(test_mcslock_try, NULL, i); } - rte_mcslock_unlock(&p_ml_try, &ml_try_me); rte_eal_mp_wait_lcore(); + rte_mcslock_unlock(&p_ml_try, &ml_try_me); /* Test is_locked API */ if (rte_mcslock_is_locked(p_ml)) {