From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E82DE43BAD; Thu, 29 Feb 2024 23:59:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74F5742FFB; Thu, 29 Feb 2024 23:59:03 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9F72742DCB for ; Thu, 29 Feb 2024 23:58:56 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 03C0320B74C6; Thu, 29 Feb 2024 14:58:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 03C0320B74C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709247535; bh=PD67OK8ysy+lDczgk7H2gRzrkGLdQPRgmvHV0WSYw8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KkOmt2zSjRjP0KP9D9iPXuaDXoVta8ovKlRpkJx5m/bOW0QciTcOlmnfSj5UET3tf jPA9iHx6PGpVp65W2GYqPJm2hnoEfoCtbx3GRVZ7PV8XSmakqRv/KdI5Uy3i/bZ+p0 PJNyvlIeVJHiNQdMA5KZvzzDssE9prRIiPPDyw5w= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Cristian Dumitrescu , Honnappa Nagarahalli , Sameh Gobriel , Vladimir Medvedkin , Yipeng Wang , mb@smartsharesystems.com, fengchengwen@huawei.com, Tyler Retzlaff Subject: [PATCH v4 5/6] lpm: replace zero length array with flex array Date: Thu, 29 Feb 2024 14:58:52 -0800 Message-Id: <1709247533-32698-6-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1709247533-32698-1-git-send-email-roretzla@linux.microsoft.com> References: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> <1709247533-32698-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Zero length arrays are GNU extension. Replace with standard flex array. Signed-off-by: Tyler Retzlaff --- lib/lpm/rte_lpm6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lpm/rte_lpm6.c b/lib/lpm/rte_lpm6.c index 271bc48..08fef82 100644 --- a/lib/lpm/rte_lpm6.c +++ b/lib/lpm/rte_lpm6.c @@ -106,7 +106,7 @@ struct rte_lpm6 { struct rte_lpm_tbl8_hdr *tbl8_hdrs; /* array of tbl8 headers */ - struct rte_lpm6_tbl_entry tbl8[0] + struct rte_lpm6_tbl_entry tbl8[] __rte_cache_aligned; /**< LPM tbl8 table. */ }; -- 1.8.3.1