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 C457943BD7; Wed, 28 Feb 2024 00:57:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8577742EFE; Wed, 28 Feb 2024 00:57:04 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id BD018402A9 for ; Wed, 28 Feb 2024 00:56:57 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 77F1520B74C5; Tue, 27 Feb 2024 15:56:56 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 77F1520B74C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709078216; bh=PD67OK8ysy+lDczgk7H2gRzrkGLdQPRgmvHV0WSYw8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T9YxUOX4Dn66woUPP3HXCIRnMk6uGge/kXOf5E8uID2JIxZdJgTOAoLQ0bnGeLQmm Z8t9YVw9twYHsjN71FOy7Y9APkbO9o7GjJ73v+1f9Lfk5nRXvXQsZ9YyokrYB5jHPD j9xjQmt/3axann+9bRkFowZUjC7bDiYXUdrkfBB4= 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 v3 5/6] lpm: replace zero length array with flex array Date: Tue, 27 Feb 2024 15:56:54 -0800 Message-Id: <1709078215-20292-6-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1709078215-20292-1-git-send-email-roretzla@linux.microsoft.com> References: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> <1709078215-20292-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