[v4,4/6] pipeline: replace zero length array with flex array
Checks
Context |
Check |
Description |
ci/Intel-compilation |
warning
|
apply issues
|
Commit Message
Zero length arrays are GNU extension. Replace with
standard flex array.
Add a temporary suppression for rte_pipeline_table_entry
libabigail bug:
Bugzilla ID: https://sourceware.org/bugzilla/show_bug.cgi?id=31377
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
---
devtools/libabigail.abignore | 2 ++
lib/pipeline/rte_pipeline.h | 2 +-
lib/pipeline/rte_port_in_action.c | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
@@ -33,6 +33,8 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Temporary exceptions till next major ABI version ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+[suppress_type]
+ name = rte_pipeline_table_entry
[suppress_type]
name = rte_rcu_qsbr
@@ -220,7 +220,7 @@ struct rte_pipeline_table_entry {
uint32_t table_id;
};
/** Start of table entry area for user defined actions and meta-data */
- __extension__ uint8_t action_data[0];
+ uint8_t action_data[];
};
/**
@@ -282,7 +282,7 @@ struct rte_port_in_action_profile *
struct rte_port_in_action {
struct ap_config cfg;
struct ap_data data;
- uint8_t memory[0] __rte_cache_aligned;
+ uint8_t memory[] __rte_cache_aligned;
};
static __rte_always_inline void *