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 1667043AFE; Mon, 12 Feb 2024 23:36:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77A7140E64; Mon, 12 Feb 2024 23:36:13 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 446AE40294 for ; Mon, 12 Feb 2024 23:36:08 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 6C433207ECAE; Mon, 12 Feb 2024 14:36:07 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6C433207ECAE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1707777367; bh=pHeSyGVRcuutiQ2BHOkiSzkvbCKpYtiiNMjF5p291eI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=prR64cHg+tZn6wEiKXGC5DiVZJDzoFDzCRuiBoFuwwr8q1Es+iGyb/9aRW9uW3jR8 fMpP06zMCSj9gqV1gSYSFLZM0Pz0F4smlLJMHaufrdqNj3yrHb03PwbVcE42YqhRgu s4ooDkSf59g8lto+zd3uI3ECKOjgaUQyDw4JYp64= 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 v2 4/4] pipeline: replace zero length array with flex array Date: Mon, 12 Feb 2024 14:36:06 -0800 Message-Id: <1707777366-26000-5-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1707777366-26000-1-git-send-email-roretzla@linux.microsoft.com> References: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> <1707777366-26000-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/pipeline/rte_pipeline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/rte_pipeline.h b/lib/pipeline/rte_pipeline.h index ec51b9b..0c7994b 100644 --- a/lib/pipeline/rte_pipeline.h +++ b/lib/pipeline/rte_pipeline.h @@ -220,7 +220,7 @@ struct rte_pipeline_table_entry { uint32_t table_id; }; /** Start of table entry area for user defined actions and meta-data */ - __extension__ uint8_t action_data[0]; + uint8_t action_data[]; }; /** -- 1.8.3.1