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 macro to declare constructor functions
[dpdk.git]
/
lib
/
librte_hash
/
rte_crc_arm64.h
diff --git
a/lib/librte_hash/rte_crc_arm64.h
b/lib/librte_hash/rte_crc_arm64.h
index
774428b
..
a3c216b
100644
(file)
--- a/
lib/librte_hash/rte_crc_arm64.h
+++ b/
lib/librte_hash/rte_crc_arm64.h
@@
-116,8
+116,7
@@
rte_hash_crc_set_alg(uint8_t alg)
}
/* Setting the best available algorithm */
-static inline void __attribute__((constructor))
-rte_hash_crc_init_alg(void)
+RTE_INIT(rte_hash_crc_init_alg)
{
rte_hash_crc_set_alg(CRC32_ARM64);
}