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 2D4DD439BC; Wed, 24 Jan 2024 23:17:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E40240ED1; Wed, 24 Jan 2024 23:17:43 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 74212402A6 for ; Wed, 24 Jan 2024 23:17:40 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id B8C0020E5681; Wed, 24 Jan 2024 14:17:39 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B8C0020E5681 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1706134659; bh=GfXIwUgPLfC5qKlOgH67LAcucjSEsklyD4/5ZwCSpGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DWWgm7HDaumuyyTkgsgxWhWLYGYitJ9ZPAjxisK6BK9YjsWwlBtGfNqWCGii7VMNO 8iLjDmOhnUzpWRhM0eZ1eZhsMx/FwPXqy6p1RysDPvQhmWjSfm/RhaxEfJWmJMeiG8 t6y1hlaHUMgzJHyY+9LylDQGiOWtIlVbUrEFL1R0= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Honnappa Nagarahalli , Sameh Gobriel , Vladimir Medvedkin , Yipeng Wang , Stephen Hemminger , Tyler Retzlaff Subject: [PATCH 2/2] rcu: replace zero length array with flex array Date: Wed, 24 Jan 2024 14:17:37 -0800 Message-Id: <1706134657-17446-3-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> References: <1706134657-17446-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/rcu/rcu_qsbr_pvt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rcu/rcu_qsbr_pvt.h b/lib/rcu/rcu_qsbr_pvt.h index 5fd7ca2..96d05e6 100644 --- a/lib/rcu/rcu_qsbr_pvt.h +++ b/lib/rcu/rcu_qsbr_pvt.h @@ -52,7 +52,7 @@ struct rte_rcu_qsbr_dq { */ typedef struct { uint64_t token; /**< Token */ - uint8_t elem[0]; /**< Pointer to user element */ + uint8_t elem[]; /**< Pointer to user element */ } __attribute__((__may_alias__)) __rte_rcu_qsbr_dq_elem_t; #endif /* _RTE_RCU_QSBR_PVT_H_ */ -- 1.8.3.1