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 97FB743355; Fri, 17 Nov 2023 17:20:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E1F2341611; Fri, 17 Nov 2023 17:20:54 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 4BA24402C7 for ; Fri, 17 Nov 2023 17:20:52 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1cc4f777ab9so19617295ad.0 for ; Fri, 17 Nov 2023 08:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238051; x=1700842851; 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=cthoJSPs905H4lSptmxg81JEYe5YGAREKbz47vR9XenZKzlQk05i96ulHZ6qTzCBup 9iFiq8yhEkSaqkv/3fjWYiqIiSberl3VowWtcaDopdgakgM6e1l4r1ScMk6O1dqr0wAe sGpP9wnvYwQM3oTjhML+GMiXWWZTqGE6gSDENIjuNdxPvPffzArU347tGLEzpXT/6+0R pLnn5pvJiIeRxK+68Wv68OZsyYEmJI9Qd/aena7puOnWb2JvBwTHzk4HadvyH8Yjop8g 6Xh6cbwRgbTBf/fp+0vMDe0KmC0cvaZ3RweqV/aDnln5fVOANqnFWpIn6xNP1EwruzPz oeIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238051; x=1700842851; 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=sthBi032MW4rOhPiSzPVywJQKs7OgHIrFHY+b0gmIKiBaiOe9i8yTbM8HMoxrMVIKT rN3/b8Jm8YLxFtS7xwUH+Ghp/oWt9P8nvk7L+j2CwtdjExIMgLx7QcVpITLAsMFmn4YZ 31rX2QegqRKzT/TrEd4yIZUGJozW7QfNik1P1UHxtLXcv6EnBIKwQEPkC6RneJvr31pL lfDCWQgNVnqGPp8M7HNPkL1lRkUHjNK8finEMGJrOlWpjCmUomrZI/S+kt0YKVaTtM16 4LKyCzLOX3b2Gs8UI2cgmpEPuZunDvWgowE/aoyBAtN8ZWkzIOLjgTC2UnOx1rQj92p3 ZH2Q== X-Gm-Message-State: AOJu0YwAeferkC81t32Yy8EJEeSCJ4G0eoP7NJQesuMAcBfkPhj7zEUR 5fmoyqpf2hbjjXzkrEpJMCaVHkXDB2Ouc+tXHOtYLw== X-Google-Smtp-Source: AGHT+IHANikzW5CERUUG3nnXwRg1iqoOvFyn31xROihhh6lT4s8CTMdhA9PQTZ+R/J7hhFzcmSZy4Q== X-Received: by 2002:a17:903:516:b0:1cc:5296:10e4 with SMTP id jn22-20020a170903051600b001cc529610e4mr86049plb.22.1700238051093; Fri, 17 Nov 2023 08:20:51 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q15-20020a17090311cf00b001c61df93afdsm1564759plh.59.2023.11.17.08.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yipeng Wang , Sameh Gobriel Subject: [PATCH v3 01/10] member: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:27 -0800 Message-ID: <20231117162040.241466-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117162040.241466-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> <20231117162040.241466-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