X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_ticketlock.c;h=66ab3d1a0248eb2067614db3829f05c5cf56d156;hb=ea31f2b4f547a767b9d3af80da77fbdcd9587986;hp=13bdadbcb146f4a99d80dd61ef69149be4abbe7e;hpb=efbcdaa55b9305bb3f0e799696c75a621ed60264;p=dpdk.git diff --git a/app/test/test_ticketlock.c b/app/test/test_ticketlock.c index 13bdadbcb1..66ab3d1a02 100644 --- a/app/test/test_ticketlock.c +++ b/app/test/test_ticketlock.c @@ -52,7 +52,7 @@ static unsigned int count; static rte_atomic32_t synchro; static int -test_ticketlock_per_core(__attribute__((unused)) void *arg) +test_ticketlock_per_core(__rte_unused void *arg) { rte_ticketlock_lock(&tl); printf("Global lock taken on core %u\n", rte_lcore_id()); @@ -66,7 +66,7 @@ test_ticketlock_per_core(__attribute__((unused)) void *arg) } static int -test_ticketlock_recursive_per_core(__attribute__((unused)) void *arg) +test_ticketlock_recursive_per_core(__rte_unused void *arg) { unsigned int id = rte_lcore_id(); @@ -186,7 +186,7 @@ test_ticketlock_perf(void) * checked as the result later. */ static int -test_ticketlock_try(__attribute__((unused)) void *arg) +test_ticketlock_try(__rte_unused void *arg) { if (rte_ticketlock_trylock(&tl_try) == 0) { rte_ticketlock_lock(&tl);