Message ID | 1709756036-24068-1-git-send-email-roretzla@linux.microsoft.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0C7AE43C5A; Wed, 6 Mar 2024 21:14:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8404C42E4A; Wed, 6 Mar 2024 21:14:00 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 7D42B40647 for <dev@dpdk.org>; Wed, 6 Mar 2024 21:13:58 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id B105220B74C0; Wed, 6 Mar 2024 12:13:57 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B105220B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709756037; bh=iSynISaZGUteoaUaTcdeDThI6hzGgyJ8+2cCc4/JaXI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OnFWT2ZjPzclIBGNNkuIY1VUtbEZsVboTXI/SqF1yXY1rdvWKDjjzG+jneM/yaD4c KuNcm/kRqzLF6DRDxkmIRsbSd1IafEI1pq8rX9oWshIQNvvXDpwzpO+JKt/yhtAbbI Q+Hxxh1lyXV41QSCqd/rHP9f4I8EjZasrupWjE9M= From: Tyler Retzlaff <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Bruce Richardson <bruce.richardson@intel.com>, Cristian Dumitrescu <cristian.dumitrescu@intel.com>, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>, Sameh Gobriel <sameh.gobriel@intel.com>, Vladimir Medvedkin <vladimir.medvedkin@intel.com>, Yipeng Wang <yipeng1.wang@intel.com>, mb@smartsharesystems.com, fengchengwen@huawei.com, Tyler Retzlaff <roretzla@linux.microsoft.com> Subject: [PATCH v5 0/6] more replacement of zero length array Date: Wed, 6 Mar 2024 12:13:50 -0800 Message-Id: <1709756036-24068-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> References: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
more replacement of zero length array
|
|
Message
Tyler Retzlaff
March 6, 2024, 8:13 p.m. UTC
Replace some missed zero length arrays not captured in the original series. https://patchwork.dpdk.org/project/dpdk/list/?series=30410&state=* Zero length arrays are a GNU extension that has been superseded by flex arrays. https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html v5: * no changes, rebase for upstream merge / conflicts. v4: * add another temporary suppression of libabigail bug for rte_rcu_qsbr. As with pipeline i cannot see that rte_rcu_qsbr is nested in any other struct. v3: * add temporary suppression of libabigail bug https://sourceware.org/bugzilla/show_bug.cgi?id=31377 * add 2 more patches covering lpm and table (series ack has not been extended) * add another zero length array missed in rcu and pipeline v2: * added additional patches for fib & pipeline libs. series-acks have been placed only against original hash and rcu patches. Tyler Retzlaff (6): hash: replace zero length array with flex array rcu: replace zero length array with flex array fib: replace zero length array with flex array pipeline: replace zero length array with flex array lpm: replace zero length array with flex array table: replace zero length array with flex array devtools/libabigail.abignore | 5 +++++ lib/fib/dir24_8.h | 2 +- lib/fib/trie.h | 2 +- lib/hash/rte_thash.c | 4 ++-- lib/lpm/rte_lpm6.c | 2 +- lib/pipeline/rte_pipeline.h | 2 +- lib/pipeline/rte_port_in_action.c | 2 +- lib/rcu/rcu_qsbr_pvt.h | 2 +- lib/rcu/rte_rcu_qsbr.h | 2 +- lib/table/rte_table_acl.c | 2 +- lib/table/rte_table_array.c | 2 +- lib/table/rte_table_hash_cuckoo.c | 2 +- lib/table/rte_table_hash_ext.c | 2 +- lib/table/rte_table_hash_key16.c | 2 +- lib/table/rte_table_hash_key32.c | 2 +- lib/table/rte_table_hash_key8.c | 2 +- lib/table/rte_table_hash_lru.c | 2 +- lib/table/rte_table_lpm.c | 2 +- lib/table/rte_table_lpm_ipv6.c | 2 +- 19 files changed, 24 insertions(+), 19 deletions(-)
Comments
On Wed, Mar 6, 2024 at 9:14 PM Tyler Retzlaff <roretzla@linux.microsoft.com> wrote: > > Replace some missed zero length arrays not captured in the > original series. > https://patchwork.dpdk.org/project/dpdk/list/?series=30410&state=* > > Zero length arrays are a GNU extension that has been > superseded by flex arrays. > > https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > > v5: > * no changes, rebase for upstream merge / conflicts. > > v4: > * add another temporary suppression of libabigail bug > for rte_rcu_qsbr. As with pipeline i cannot see that > rte_rcu_qsbr is nested in any other struct. > > v3: > * add temporary suppression of libabigail bug > https://sourceware.org/bugzilla/show_bug.cgi?id=31377 > * add 2 more patches covering lpm and table > (series ack has not been extended) > * add another zero length array missed in rcu and pipeline > > v2: > * added additional patches for fib & pipeline libs. > series-acks have been placed only against original > hash and rcu patches. > > Tyler Retzlaff (6): > hash: replace zero length array with flex array > rcu: replace zero length array with flex array > fib: replace zero length array with flex array > pipeline: replace zero length array with flex array > lpm: replace zero length array with flex array > table: replace zero length array with flex array > > devtools/libabigail.abignore | 5 +++++ > lib/fib/dir24_8.h | 2 +- > lib/fib/trie.h | 2 +- > lib/hash/rte_thash.c | 4 ++-- > lib/lpm/rte_lpm6.c | 2 +- > lib/pipeline/rte_pipeline.h | 2 +- > lib/pipeline/rte_port_in_action.c | 2 +- > lib/rcu/rcu_qsbr_pvt.h | 2 +- > lib/rcu/rte_rcu_qsbr.h | 2 +- > lib/table/rte_table_acl.c | 2 +- > lib/table/rte_table_array.c | 2 +- > lib/table/rte_table_hash_cuckoo.c | 2 +- > lib/table/rte_table_hash_ext.c | 2 +- > lib/table/rte_table_hash_key16.c | 2 +- > lib/table/rte_table_hash_key32.c | 2 +- > lib/table/rte_table_hash_key8.c | 2 +- > lib/table/rte_table_hash_lru.c | 2 +- > lib/table/rte_table_lpm.c | 2 +- > lib/table/rte_table_lpm_ipv6.c | 2 +- > 19 files changed, 24 insertions(+), 19 deletions(-) libabigail 2.5 got released. I had a try with it in GHA, and the false positive errors around lib/pipeline and lib/rcu are gone. Yet there may still be people using older version, so let's take this series as is with the temporary exceptions. Series applied, thanks.