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 C5A07423CA; Fri, 13 Jan 2023 22:52:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA63842E17; Fri, 13 Jan 2023 22:52:10 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 00E0340E0F for ; Fri, 13 Jan 2023 22:52:08 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id d3so24732515plr.10 for ; Fri, 13 Jan 2023 13:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=RE9oVmYTvO2njgqdXXMU6pUqT3F4eqfUDVlvtzohORo=; b=CiDkQJS/uvXwozFL5IPSXqS8cfxJOlV2ztaoDve7uqk9/QvGZpI1yNT7b80mr6m+F3 jFJSYGUAgnyu7Isj7V30AD8h3Wl2SPXL7YvkN79QvmYOw8odeeOuFFT+vaTCMDWCMV+Y n+/wMXYVh4lResXtKFpZKiwExjoKx8nimWr8R8JVvQpTOyz1RMi2oA1nNcX3sbUZzjSN zFZa95R8jm0LfI1InmNaQsl735MBFWZFBk3i4T5jNgmLlkRaHhkLMu03ioFDRdv3oGZ+ 22FD/Urrui1Gz71R6zDmk4uAeKPSPYGg/jAH4WODrawWLF6361+fP7orafDRaUJd5LFD dgXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=RE9oVmYTvO2njgqdXXMU6pUqT3F4eqfUDVlvtzohORo=; b=QiYvcLSjxPy5xfFvGIFt/b1mhZ3W5drMPZlNADetv4rAN4nJEDcu4N2+NOjta/bnmQ FoIYkTFdjsXcqdmpQZS+QoT2tOMmt2DppUE6kMUiIZEgcL/4q/5N/mASkxGwdcagjvT5 jJj/se/Gth2Keacs8j2b7JgwK23kzdX6tS+STPaOyRSq/db5FCzhJC87vLibA4qwCTEf JX6P/1LSQbsOBOruPYJ7wis3rVVYH654QFT9bMHOhfE640IMTgoPogCjRKWgnewQQYpZ Osa/PGLxL25w9kxDq4PxxLzERX97CqLDWzhttfeHW6+MChnFpz2S2E+lfls4g0p8tTMr bPwA== X-Gm-Message-State: AFqh2kraRrsh6WtYXycpDsVCcPwFL+pRLPsB1mXh5z+pJpcqId7PKJEi bIpWzsCpxw+J/Zn3Xvm+jr9QkfHcKIHTvM5GjgI= X-Google-Smtp-Source: AMrXdXuCSHf43v9ik2BjDY6MDUiSI/45/qnh4L6ruSCZglzmbNADNSUeCzQqcM57/nSFw+pMZyX+Mw== X-Received: by 2002:a05:6a20:d496:b0:a7:a3cf:ddce with SMTP id im22-20020a056a20d49600b000a7a3cfddcemr92649972pzb.21.1673646727985; Fri, 13 Jan 2023 13:52:07 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id m190-20020a6258c7000000b005821c109cebsm9543995pfb.199.2023.01.13.13.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 13:52:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yipeng Wang , Sameh Gobriel Subject: [PATCH 1/7] member: replace zero length array with flex array Date: Fri, 13 Jan 2023 13:51:59 -0800 Message-Id: <20230113215205.125767-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113215205.125767-1-stephen@networkplumber.org> References: <20230113215205.125767-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.39.0