[20.05,01/15] app/bbdev: replace constructor syntax with common macro
Checks
Commit Message
There is a macro RTE_INIT for constructors,
which is now used where appropriate for consistency.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
app/test-bbdev/main.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On 2/10/20 8:20 AM, Thomas Monjalon wrote:
> There is a macro RTE_INIT for constructors, which is now used where
> appropriate for consistency.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Nic Chautru <nicolas.chautru@intel.com>
@@ -104,8 +104,7 @@ void add_test_command(struct test_command *t);
.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); \
}