git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ring: fix build with -Wswitch-enum
[dpdk.git]
/
app
/
test
/
test_ticketlock.c
diff --git
a/app/test/test_ticketlock.c
b/app/test/test_ticketlock.c
index
13bdadb
..
66ab3d1
100644
(file)
--- 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
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());
{
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
}
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();
{
unsigned int id = rte_lcore_id();
@@
-186,7
+186,7
@@
test_ticketlock_perf(void)
* checked as the result later.
*/
static int
* 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);
{
if (rte_ticketlock_trylock(&tl_try) == 0) {
rte_ticketlock_lock(&tl);