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 6FA194334C; Fri, 17 Nov 2023 05:04:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33A39406BA; Fri, 17 Nov 2023 05:04:46 +0100 (CET) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) by mails.dpdk.org (Postfix) with ESMTP id A1FEA4014F for ; Fri, 17 Nov 2023 05:04:44 +0100 (CET) Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-5875c300becso901959eaf.0 for ; Thu, 16 Nov 2023 20:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193883; x=1700798683; 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=1GTMDMAqHcBxdQ755NG9J8jKua/cOl+Uer9AforwT6c=; b=LmlziDwpUIvEcR17xf+095Khe64RdfxuklT8hja3uLqmvYT4By4V5O1turtSKBDNrQ oFmyFjkrExDsYQN580cAvi04zvC2vi/iUX+lhZBJfiefWVmPKF409Txe4nqWfiDJsBZZ ibd5BqkvZZKWh8gPrwv2OFkrPYpCGEa0h9KmjtjCEukKbjFddIy2XYDwRcpJT9tT806x 5WhJZ2PFSM29tv5V2rpDiv7s9JvLqOS5ogYav5THv2aqHqYcfM3r2SCXPr9fal3ZajGe P1i2XMxg64xHBpwomxkBPqj2yGSZWJDYjp1tqEwEcbtdRTUxKLjN0c0AMZGD4514te7z xyGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193883; x=1700798683; 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=1GTMDMAqHcBxdQ755NG9J8jKua/cOl+Uer9AforwT6c=; b=gKESEVhpGMrtjNchGgxXTUlkD0baRH34h0byOo39UEfgoMz3VVDfTWm/R30/PoB0+S KsBKpokObBCaQp+GJiyNxnA57/sujHJSP1i7TZ/HMhDtsEUYiL6Cp4camaJ62g/crmbL Z6o902gFErwJ2zknu+2Fj6EQNH9hbtmj+v5xRII/m8L2ph8DZGk72bEUbtG2hleorfBs Jfg2GHiXweKrL67F+1jwP+ODAT4OG5wpYPknmdKnHGfJUgB+8a7pqSudc8wujAeL2TxM 2gfi3cauhEPcJze6hl5O3UxW9HPGayq5aY/B+s8gkR30/XxKjui/V/ODCQeYj+Mbq87i ONBA== X-Gm-Message-State: AOJu0Yysb7Y/4nXp8XAoPjJDoJMsklYze6gIwJRDvSRgMIYCul7rnJ/c 6bbHQiPxUjX4cFvmFakmDdMkGYVcTz+6dKZDVlJ9dQ== X-Google-Smtp-Source: AGHT+IEw0eQbE+Vklf3L4nHGr4A19+YY5xKpQzivrCGDPK9bEpE32SfWomgY6hAwYWBt1ACMrZn3ig== X-Received: by 2002:a05:6358:3416:b0:16b:c403:1689 with SMTP id h22-20020a056358341600b0016bc4031689mr11486666rwd.9.1700193883219; Thu, 16 Nov 2023 20:04:43 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id s11-20020a65644b000000b005bcebc93d7asm389873pgv.47.2023.11.16.20.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yipeng Wang , Sameh Gobriel Subject: [PATCH v2 01/10] member: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:13 -0800 Message-ID: <20231117040432.131737-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117040432.131737-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231117040432.131737-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 --- 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