[PATCH v5 08/10] pdcp: replace zero length array with flex array
Stephen Hemminger
stephen at networkplumber.org
Wed Nov 29 03:39:15 CET 2023
Zero length arrays are GNU extension. Replace with
standard flex array.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
Acked-by: Anoob Joseph <anoobj at marvell.com>
---
lib/pdcp/pdcp_entity.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pdcp/pdcp_entity.h b/lib/pdcp/pdcp_entity.h
index 4fc6342a5ced..f854192e98dc 100644
--- a/lib/pdcp/pdcp_entity.h
+++ b/lib/pdcp/pdcp_entity.h
@@ -185,7 +185,7 @@ struct entity_priv_dl_part {
/** Reorder packet buffer */
struct pdcp_reorder reorder;
/** Bitmap memory region */
- uint8_t bitmap_mem[0];
+ uint8_t bitmap_mem[];
};
struct entity_priv_ul_part {
--
2.42.0
More information about the dev
mailing list