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 A7692433F5; Wed, 29 Nov 2023 03:42:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7620E42E2B; Wed, 29 Nov 2023 03:42:35 +0100 (CET) Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) by mails.dpdk.org (Postfix) with ESMTP id A5CAF42E26 for ; Wed, 29 Nov 2023 03:42:33 +0100 (CET) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-1f9decb7446so3163297fac.2 for ; Tue, 28 Nov 2023 18:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225752; x=1701830552; 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=C+y5iBXCxeqKxb2/yG1MByAGGvZn7JG4rWZS6Ln0WU/7DvK+XM9L9uxWKRjCQXgJd4 n4y3oh0NGp9DeFvrJN5ay2BWRgseM+Rr+8HeEd/b865DJLqfQ4smEId6lgZ+4xIyoCnA uv+TlpYE4JUawmc7bK1yIb1b/9fSHeprnpd676IRDijYNI50cFVh8drIElvor499opzz K9Tbtl3Vqxtx7ep7j4EYLGP4KlA9lpnQavxeWQzPu/2ZS1Sgojd+vI6IkNrfEL1Htf90 1PMblXw7SSfXPQELokOXzagz/qrkaIfWLNN6pxYUmcqjltRiIzy6HYG8EBB2ijfhDW+v fx7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225752; x=1701830552; 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=Q3V14ZqvXlvmo/fa3057qbnwfJ62oE4r6E6iGD3EK8pSgzX7ErDWwXSSi6gBQmsc1X WP/ndAwTuwqRlk6vk3Obm91S/leyxvk9REZsLS1fBIsTzQO5PDGxn6c3PXAas6NOSFd0 MS7MGol0zt9wqvuZvBzvJw/NFHHCudXkjy0rIOFmJJEcdBI+SvAZYP0IvNTrhRAgbzY3 WyCNtO3/zYU54Mg6ngWSOTdLDHPIENZiy1eFoFV+zi8ihup248sG0eBszYFFrJLb4W9t wkGcOlLrrP6cPwZUXURlBx0+DqbbpWntXXG+SzkvnLVDO30jTdFh35FFQyj5aD0dJFx4 0U2g== X-Gm-Message-State: AOJu0Yy9gFvkXlzbEM9efRxNhOV+fINiTMXiNBoOWaN1m59wIMiISrVs E18kM4C9yZBxtnvk/HxW/q8DxKME8A9+zdGSSmY= X-Google-Smtp-Source: AGHT+IEtpAmFqW+8VowEV/XzoGMa19oCQwc6AH4I4jIcAzRDXpVvWbC4M17aNrZXC0UHZzhm5oP1dg== X-Received: by 2002:a05:6870:418c:b0:1fa:135e:f140 with SMTP id y12-20020a056870418c00b001fa135ef140mr17522577oac.34.1701225752571; Tue, 28 Nov 2023 18:42:32 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j17-20020aa78011000000b006cb95f6aa0fsm9674900pfi.150.2023.11.28.18.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:31 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yipeng Wang , Sameh Gobriel Subject: [PATCH v5 01/10] member: replace zero length array with flex array Date: Tue, 28 Nov 2023 18:39:08 -0800 Message-ID: <20231129024221.57653-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231129024221.57653-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231129024221.57653-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