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 9963143381; Mon, 20 Nov 2023 18:09:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FCE142DD2; Mon, 20 Nov 2023 18:09:54 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 693FB4027A for ; Mon, 20 Nov 2023 18:09:53 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6cb4d366248so1577431b3a.0 for ; Mon, 20 Nov 2023 09:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500192; x=1701104992; 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=FEICU3ouQeAUtqVJUdSOdosqVqg7PlVzsjzv3BnD26w=; b=27V4l1TSMxj1pCv7ihMM5tKEpXRoNOG6JIO3CYXMBLNfDgn49YS1Px1nnpnYVnf7YB 93BrPtFv5QakqNonL3UXqD1jyX3au4Skt3SsYQBOVBkb+55bMCc7MfA3psKTmMWbgbAB oCDAYWdiwyja9jxx0T4r4MqSOwlbX3xnUT5uQxsTd9DLXXbljuk3XkSzCJ0bkJPCRje3 c1AwuvXhQ4zzMCchnRbuuBifmQ19nxe8nfj+nmjxIRtu/j6xi/f+TB9Nt/G9RCaBPjn/ 5kU0l/c937pqe13y/DfHNs/YvzB/g3bsHx9PjjmHfYXBzMCYE7nKd3D2i4Y/b7JTJE6Q O8mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500192; x=1701104992; 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=FEICU3ouQeAUtqVJUdSOdosqVqg7PlVzsjzv3BnD26w=; b=X8aE1SaeqLfzfgb2Oi5jsRE/l1way7Caa4PsKajk/1mhw7fOaAEgvo60acrCr2efe4 1BYRTuv1wOQsfgfLv0eFHs12JBgmt+PqjeQNipTnxC1MLUoquh4Jabyc2jQwPOzCV/fE oGazQMd6JMrYepl+KQpz3xtX5n7gB32iVATQNZqTyxvm7IpLTAkH5dOIHHAax+XTvohT Zfqn8KVXIbQx2YTxbK8AjjrFXcPudZuo7jGJVgFHEkh9aDScq/8I9Ds9//eRoivNeM5R FKjp8nvvmhh3dB2urOqm4b5k/zWKvud+K3MwyhxOyclYckKHoWmwIDl4zDo475MMylEx Xaag== X-Gm-Message-State: AOJu0Ywr3q82Ft8KYpCgSVPIfydTBEnU+hcNAael1lqf1CuXheLNaF74 Y6gJ+9Z+XDzSARixpBOIET+46pL3dAqouHOhz6Y= X-Google-Smtp-Source: AGHT+IG1VB5Hgv4/kUnjL9TGPgjc47Qeb6v7Ovcx5rmj9r/3Onejiylho/QO+Q41Br2E9dNWPxj8mA== X-Received: by 2002:a05:6a20:12c2:b0:187:f200:5e99 with SMTP id v2-20020a056a2012c200b00187f2005e99mr7347131pzg.60.1700500192027; Mon, 20 Nov 2023 09:09:52 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 00/10] Replace zero length arrays Date: Mon, 20 Nov 2023 09:06:55 -0800 Message-ID: <20231120170942.197172-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230113215205.125767-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Zero length arrays are a GNU extension that has been superseded by flex arrays. https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html These are places found by cocci/zero_length_array.cocci v4 - fix issues reported by clang where zero length array was embedded in security structures in cn10k and txq being embedded in mlx5 was missing extension Stephen Hemminger (10): member: replace zero length array with flex array cryptodev: replace zero length array with flex array security: replace zero length array with flex array pipeline: replace zero length array with flex array net/nfp: replace zero length array with flex array net/enic: replace zero length array with flex array net/mlx5: replace zero length array with flex array pdcp: replace zero length array with flex array net/cpfl: replace zero length array with flex array common/dpaxx: remove zero length array drivers/common/dpaax/caamflib/desc/ipsec.h | 6 ++---- drivers/common/mlx5/mlx5_prm.h | 2 +- drivers/crypto/cnxk/cn10k_ipsec.h | 4 +++- drivers/crypto/cnxk/cn9k_ipsec.h | 4 +++- drivers/crypto/cnxk/cnxk_se.h | 5 ++++- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 2 +- drivers/net/enic/base/vnic_devcmd.h | 2 +- drivers/net/mlx5/mlx5.h | 4 ++-- drivers/net/mlx5/mlx5_flow.h | 2 +- drivers/net/mlx5/mlx5_tx.h | 3 ++- drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +- lib/cryptodev/cryptodev_pmd.h | 2 +- lib/member/rte_member_heap.h | 2 +- lib/pdcp/pdcp_entity.h | 2 +- lib/pipeline/rte_swx_pipeline_internal.h | 2 +- lib/security/rte_security_driver.h | 2 +- 16 files changed, 26 insertions(+), 20 deletions(-) -- 2.42.0