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 89C7343381; Mon, 20 Nov 2023 18:10:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F61242E33; Mon, 20 Nov 2023 18:09:57 +0100 (CET) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 8645E42E30 for ; Mon, 20 Nov 2023 18:09:54 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6c4eb5fda3cso4731296b3a.2 for ; Mon, 20 Nov 2023 09:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500193; x=1701104993; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7wQZbESJu/aOiKTzB65D8K/+oyOwJE56LxYKD2atUAk=; b=axW83kaFQpytJwtixI/xIohYOx0RntDIlGPypGPEPKgF6+ahT6jcV4/EC2QgCvM09Z 8JK+M35QjOHlsajg4pxFduhiKM585J2D5LvRzKVkV/fpyND4DDd2383Wj7fRbdZ/JaYq 5t78AX6sPlwrpgwyJwfrn8sgWINL1aey15rMajUhSDpm62LzaRDjHCvrAOM0BAOqMbkA sg5oWPMlCTpM1ZOd8U8ptW+/ZVb+oc5TMoayPoezdOUEeiVZlTzGdXvtmT1re4Fl6z+y eqMO1+RKGaOw3TypE2sZOcqqkR26IrHESX5vvJAFXykH2aUBS6l/obh55wjbhkdes/4J DBYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500193; x=1701104993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7wQZbESJu/aOiKTzB65D8K/+oyOwJE56LxYKD2atUAk=; b=Zu87nsAd1xufZ/ddbCOjfmMn+CSu7Xub+wz7vMPdYKVsGkYYztSqEe3/vNZFGM71NH fRx/GACnxdhhqzSEMsDqwTZ5yZvO9BwEIZ1eCkNJrXbfTtFaSnNjBrPz0xkk5vG+GQ5E jQmSiutGkdeT91eeuzLyGBeGTkfJDV3LS+gsEdU165MJs3HXLp0NA8RRO9pCdtX7jMY5 +vrGFE66wUDrWIhEmn3cxfxjTiW+RdRL98UsvX4tn/GIhtS6G7Xin7Lt7JjG93tuwFFH YYQ2CIc+mpgDzyc0vK0PnALvUFYLRdboJqXIKl9jrhFLw+ZpekjeECCtizHsINI2tQkY +5ag== X-Gm-Message-State: AOJu0YxTj3L4LR8meQb0GEFtYfU8fiXlsuABEM5lk2Y+JPZZzrxMl1Do 17HRO3sOUBfoyVS0dyzaKEj6jA/SOewBG9vFmYk= X-Google-Smtp-Source: AGHT+IFS3UdoeJKtEzxiDCB6HFtvsZalEsWjdliAfeQKgHWx9zaa+7lf507uFOyyri6ExR0Q7xg7Ug== X-Received: by 2002:a05:6a20:2446:b0:187:b7eb:944d with SMTP id t6-20020a056a20244600b00187b7eb944dmr10523195pzc.13.1700500193351; Mon, 20 Nov 2023 09:09:53 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yipeng Wang , Sameh Gobriel Subject: [PATCH v4 01/10] member: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:06:56 -0800 Message-ID: <20231120170942.197172-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Stephen Hemminger Reviewed-by: Tyler Retzlaff --- lib/member/rte_member_heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/member/rte_member_heap.h b/lib/member/rte_member_heap.h index 9c4a01aebe95..ab6319bc2de4 100644 --- a/lib/member/rte_member_heap.h +++ b/lib/member/rte_member_heap.h @@ -26,7 +26,7 @@ struct hash { uint16_t bkt_cnt; uint16_t num_item; uint32_t seed; - struct hash_bkt buckets[0]; + struct hash_bkt buckets[]; }; struct node { -- 2.42.0