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
replace unused attributes
[dpdk.git]
/
app
/
test
/
test_spinlock.c
diff --git
a/app/test/test_spinlock.c
b/app/test/test_spinlock.c
index
6ac7495
..
842990e
100644
(file)
--- a/
app/test/test_spinlock.c
+++ b/
app/test/test_spinlock.c
@@
-52,7
+52,7
@@
static unsigned count = 0;
static rte_atomic32_t synchro;
static int
static rte_atomic32_t synchro;
static int
-test_spinlock_per_core(__
attribute__((unused))
void *arg)
+test_spinlock_per_core(__
rte_unused
void *arg)
{
rte_spinlock_lock(&sl);
printf("Global lock taken on core %u\n", rte_lcore_id());
{
rte_spinlock_lock(&sl);
printf("Global lock taken on core %u\n", rte_lcore_id());
@@
-66,7
+66,7
@@
test_spinlock_per_core(__attribute__((unused)) void *arg)
}
static int
}
static int
-test_spinlock_recursive_per_core(__
attribute__((unused))
void *arg)
+test_spinlock_recursive_per_core(__
rte_unused
void *arg)
{
unsigned id = rte_lcore_id();
{
unsigned id = rte_lcore_id();
@@
-178,7
+178,7
@@
test_spinlock_perf(void)
* checked as the result later.
*/
static int
* checked as the result later.
*/
static int
-test_spinlock_try(__
attribute__((unused))
void *arg)
+test_spinlock_try(__
rte_unused
void *arg)
{
if (rte_spinlock_trylock(&sl_try) == 0) {
rte_spinlock_lock(&sl);
{
if (rte_spinlock_trylock(&sl_try) == 0) {
rte_spinlock_lock(&sl);