There is a macro RTE_INIT for constructors,
which is now used where appropriate for consistency.

Signed-off-by: Thomas Monjalon <tho...@monjalon.net>
---
 app/test-bbdev/main.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/test-bbdev/main.h b/app/test-bbdev/main.h
index 23b4d58a53..836f6d6efd 100644
--- a/app/test-bbdev/main.h
+++ b/app/test-bbdev/main.h
@@ -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); \
        }
-- 
2.25.0

Reply via email to