summaryrefslogtreecommitdiff
path: root/lib/librte_eal/common/include/rte_tailq.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_eal/common/include/rte_tailq.h')
-rw-r--r--lib/librte_eal/common/include/rte_tailq.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librte_eal/common/include/rte_tailq.h b/lib/librte_eal/common/include/rte_tailq.h
index 8dccaef..9b01abb 100644
--- a/lib/librte_eal/common/include/rte_tailq.h
+++ b/lib/librte_eal/common/include/rte_tailq.h
@@ -119,8 +119,7 @@ struct rte_tailq_head *rte_eal_tailq_lookup(const char *name);
int rte_eal_tailq_register(struct rte_tailq_elem *t);
#define EAL_REGISTER_TAILQ(t) \
-RTE_INIT(tailqinitfn_ ##t); \
-static void tailqinitfn_ ##t(void) \
+RTE_INIT(tailqinitfn_ ##t) \
{ \
if (rte_eal_tailq_register(&t) < 0) \
rte_panic("Cannot initialize tailq: %s\n", t.name); \