diff --git a/lib/table/rte_table_acl.c b/lib/table/rte_table_acl.c index 6f3be6f1da9..78779bbc4d6 100644 --- a/lib/table/rte_table_acl.c +++ b/lib/table/rte_table_acl.c @@ -48,7 +48,7 @@ struct rte_table_acl { uint8_t *acl_rule_memory; /* Memory to store the rules */ /* Memory to store the action table and stack of free entries */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; diff --git a/lib/table/rte_table_array.c b/lib/table/rte_table_array.c index 71aada4aaf0..84b5d67e90d 100644 --- a/lib/table/rte_table_array.c +++ b/lib/table/rte_table_array.c @@ -40,7 +40,7 @@ struct __rte_cache_aligned rte_table_array { uint32_t entry_pos_mask; /* Internal table */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t array[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t array[]; }; static void * diff --git a/lib/table/rte_table_hash_cuckoo.c b/lib/table/rte_table_hash_cuckoo.c index 04668ca6f8f..388eae918cd 100644 --- a/lib/table/rte_table_hash_cuckoo.c +++ b/lib/table/rte_table_hash_cuckoo.c @@ -44,7 +44,7 @@ struct rte_table_hash { struct rte_hash *h_table; /* Lookup table */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; static int diff --git a/lib/table/rte_table_hash_ext.c b/lib/table/rte_table_hash_ext.c index ed93f249071..91e5037b413 100644 --- a/lib/table/rte_table_hash_ext.c +++ b/lib/table/rte_table_hash_ext.c @@ -100,7 +100,7 @@ struct rte_table_hash { uint32_t *bkt_ext_stack; /* Table memory */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; static int diff --git a/lib/table/rte_table_hash_key16.c b/lib/table/rte_table_hash_key16.c index 6141815316e..67b77c16a05 100644 --- a/lib/table/rte_table_hash_key16.c +++ b/lib/table/rte_table_hash_key16.c @@ -85,7 +85,7 @@ struct rte_table_hash { uint32_t *stack; /* Lookup table */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; static int diff --git a/lib/table/rte_table_hash_key32.c b/lib/table/rte_table_hash_key32.c index c8f59adb6e5..1aa86c6a49f 100644 --- a/lib/table/rte_table_hash_key32.c +++ b/lib/table/rte_table_hash_key32.c @@ -85,7 +85,7 @@ struct rte_table_hash { uint32_t *stack; /* Lookup table */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; static int diff --git a/lib/table/rte_table_hash_key8.c b/lib/table/rte_table_hash_key8.c index cd91a0ed81d..c8d72b333d7 100644 --- a/lib/table/rte_table_hash_key8.c +++ b/lib/table/rte_table_hash_key8.c @@ -81,7 +81,7 @@ struct rte_table_hash { uint32_t *stack; /* Lookup table */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; static int diff --git a/lib/table/rte_table_hash_lru.c b/lib/table/rte_table_hash_lru.c index 7b67b9922d0..801e48f5ba6 100644 --- a/lib/table/rte_table_hash_lru.c +++ b/lib/table/rte_table_hash_lru.c @@ -77,7 +77,7 @@ struct rte_table_hash { uint32_t *key_stack; /* Table memory */ - alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t memory[]; }; static int diff --git a/lib/table/rte_table_lpm.c b/lib/table/rte_table_lpm.c index 89f8323ffb7..3e10c14d409 100644 --- a/lib/table/rte_table_lpm.c +++ b/lib/table/rte_table_lpm.c @@ -48,7 +48,7 @@ struct rte_table_lpm { /* Next Hop Table (NHT) */ uint32_t nht_users[RTE_TABLE_LPM_MAX_NEXT_HOPS]; - alignas(RTE_CACHE_LINE_SIZE) uint8_t nht[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t nht[]; }; static void * diff --git a/lib/table/rte_table_lpm_ipv6.c b/lib/table/rte_table_lpm_ipv6.c index 3dec5dde48e..c1a7412f92c 100644 --- a/lib/table/rte_table_lpm_ipv6.c +++ b/lib/table/rte_table_lpm_ipv6.c @@ -45,7 +45,7 @@ struct rte_table_lpm_ipv6 { /* Next Hop Table (NHT) */ uint32_t nht_users[RTE_TABLE_LPM_MAX_NEXT_HOPS]; - alignas(RTE_CACHE_LINE_SIZE) uint8_t nht[0]; + alignas(RTE_CACHE_LINE_SIZE) uint8_t nht[]; }; static void *