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_atomic.c
diff --git
a/app/test/test_atomic.c
b/app/test/test_atomic.c
index
de3030d
..
214452e
100644
(file)
--- a/
app/test/test_atomic.c
+++ b/
app/test/test_atomic.c
@@
-108,7
+108,7
@@
static rte_atomic64_t count;
static rte_atomic32_t synchro;
static int
static rte_atomic32_t synchro;
static int
-test_atomic_usual(__
attribute__((unused))
void *arg)
+test_atomic_usual(__
rte_unused
void *arg)
{
unsigned i;
{
unsigned i;
@@
-146,7
+146,7
@@
test_atomic_usual(__attribute__((unused)) void *arg)
}
static int
}
static int
-test_atomic_tas(__
attribute__((unused))
void *arg)
+test_atomic_tas(__
rte_unused
void *arg)
{
while (rte_atomic32_read(&synchro) == 0)
;
{
while (rte_atomic32_read(&synchro) == 0)
;
@@
-162,7
+162,7
@@
test_atomic_tas(__attribute__((unused)) void *arg)
}
static int
}
static int
-test_atomic_addsub_and_return(__
attribute__((unused))
void *arg)
+test_atomic_addsub_and_return(__
rte_unused
void *arg)
{
uint32_t tmp16;
uint32_t tmp32;
{
uint32_t tmp16;
uint32_t tmp32;
@@
-206,7
+206,7
@@
test_atomic_addsub_and_return(__attribute__((unused)) void *arg)
*
*/
static int
*
*/
static int
-test_atomic_inc_and_test(__
attribute__((unused))
void *arg)
+test_atomic_inc_and_test(__
rte_unused
void *arg)
{
while (rte_atomic32_read(&synchro) == 0)
;
{
while (rte_atomic32_read(&synchro) == 0)
;
@@
-233,7
+233,7
@@
test_atomic_inc_and_test(__attribute__((unused)) void *arg)
* be checked as the result later.
*/
static int
* be checked as the result later.
*/
static int
-test_atomic_dec_and_test(__
attribute__((unused))
void *arg)
+test_atomic_dec_and_test(__
rte_unused
void *arg)
{
while (rte_atomic32_read(&synchro) == 0)
;
{
while (rte_atomic32_read(&synchro) == 0)
;
@@
-261,7
+261,7
@@
static rte_int128_t count128;
* iteration it runs compare and swap operation with different memory models.
*/
static int
* iteration it runs compare and swap operation with different memory models.
*/
static int
-test_atomic128_cmp_exchange(__
attribute__((unused))
void *arg)
+test_atomic128_cmp_exchange(__
rte_unused
void *arg)
{
rte_int128_t expected;
int success;
{
rte_int128_t expected;
int success;
@@
-397,7
+397,7
@@
get_crc8(uint8_t *message, int length)
* +------------+------------+
*/
static int
* +------------+------------+
*/
static int
-test_atomic_exchange(__
attribute__((unused))
void *arg)
+test_atomic_exchange(__
rte_unused
void *arg)
{
int i;
test16_t nt16, ot16; /* new token, old token */
{
int i;
test16_t nt16, ot16; /* new token, old token */