[dpdk-dev] [PATCH 20.05 01/15] app/bbdev: replace constructor syntax with common macro
Thomas Monjalon
thomas at monjalon.net
Mon Feb 10 17:20:18 CET 2020
There is a macro RTE_INIT for constructors,
which is now used where appropriate for consistency.
Signed-off-by: Thomas Monjalon <thomas at 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
More information about the dev
mailing list