Zero length arrays are GNU extension. Replace with
standard flex array.

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 drivers/common/dpaax/caamflib/desc/ipsec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/common/dpaax/caamflib/desc/ipsec.h 
b/drivers/common/dpaax/caamflib/desc/ipsec.h
index 95fc3ea5ba3b..7bd82e4d0639 100644
--- a/drivers/common/dpaax/caamflib/desc/ipsec.h
+++ b/drivers/common/dpaax/caamflib/desc/ipsec.h
@@ -350,7 +350,7 @@ struct ipsec_encap_pdb {
        };
        uint32_t spi;
        uint32_t ip_hdr_len;
-       uint8_t ip_hdr[0];
+       uint8_t ip_hdr[];
 };
 
 static inline unsigned int
-- 
2.42.0

Reply via email to