[PATCH] net/zxdh: replace zero length array
Stephen Hemminger
stephen at networkplumber.org
Thu Aug 21 17:25:35 CEST 2025
Zero length arrays are a GNU C extension, the better way to
get the same effect is to use ISO C99 flexible array.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/zxdh/zxdh_np.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/zxdh/zxdh_np.h b/drivers/net/zxdh/zxdh_np.h
index 1b8f17474d..31cd844ceb 100644
--- a/drivers/net/zxdh/zxdh_np.h
+++ b/drivers/net/zxdh/zxdh_np.h
@@ -1058,7 +1058,7 @@ typedef struct zxdh_acl_etcamid_cfg_t {
typedef struct zxdh_acl_key_info_t {
uint32_t handle;
uint32_t pri;
- uint8_t key[0];
+ uint8_t key[];
} ZXDH_ACL_KEY_INFO_T;
typedef uint32_t (*ZXDH_ACL_TBL_AS_DDR_WR_FUN)(uint32_t dev_id, uint32_t tbl_type,
--
2.47.2
More information about the dev
mailing list