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
use appropriate EAL macro for constructors
[dpdk.git]
/
app
/
test-bbdev
/
main.h
diff --git
a/app/test-bbdev/main.h
b/app/test-bbdev/main.h
index
20a55ef
..
2bbe1b8
100644
(file)
--- a/
app/test-bbdev/main.h
+++ b/
app/test-bbdev/main.h
@@
-103,8
+103,7
@@
void add_test_command(struct test_command *t);
.command = RTE_STR(name), \
.callback = test_func_##name, \
}; \
.command = RTE_STR(name), \
.callback = test_func_##name, \
}; \
- static void __attribute__((constructor, used)) \
- test_register_##name(void) \
+ RTE_INIT(test_register_##name) \
{ \
add_test_command(&test_struct_##name); \
}
{ \
add_test_command(&test_struct_##name); \
}