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 D9BE2433F5; Wed, 29 Nov 2023 03:42:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CE8940DDE; Wed, 29 Nov 2023 03:42:33 +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 A94E34021F for ; Wed, 29 Nov 2023 03:42:32 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6cb66fbc63dso346615b3a.0 for ; Tue, 28 Nov 2023 18:42:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225751; x=1701830551; 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=cWtJ9NZSkc8BDfjhSnao5tOrtp6/kCL7MoYKj/CaoTs=; b=FkiEH1e0gPciuQmSOl4Gt6zsZ7CYtO2pD6x3u0svWf0T8S7PsVZcUjFxNdBQVI6Qv8 IGBcPwhsAde0J3VNafa41L0l3+9RO9bL71RZWdG9M0+NuittqvNw+KACOQu3gYWG06lE wzVpJJ7DDd1BmQgR7zQttELkIL8OfwL1J6/j6R7inADl2PgHZj0oXDln6Kxb/zVYUtGP hXwwXX6SKFe9fVYvXs4laZI1dGk7n1QI/J7ZvNTCH8huYpa8xP8mKXHxVIeGE01Fngkj J192GhqrYsfmPchngh84fQ3zHmjoz50Z+WfUBxY6Nhj3KFzgnYRF/9GefiKNjfx0b1r2 6b6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225751; x=1701830551; 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=cWtJ9NZSkc8BDfjhSnao5tOrtp6/kCL7MoYKj/CaoTs=; b=t+gvzNSsUTrF+Y6eWvGtlHgf+Fw6+lfcd4YIbCZ5Di5jflWrN2jSzmeG/LjIP8ttKI Q1eXp76ySMOqWcTGRn8d8C+Uz2gOeEK6Zj4W9TKM2qa8b1H4BikRKtbf+RRibb7kIZeA BNXMYe9oVyf6RWEfiG7QjZu/8xUMWH3NwJx0QHqxnhK7qXPfF883MQLSlI2PsNsJJlPU rTZnPNYDw8f4EE823Nddp1SiLd5fluAkNjwmrdTOSOb7ia9x0nEcC8isqkHv+equHaA9 4rg38QgWgNSeHAjEQ1qta6icaRnE9mRKW3oDzPvWjqLSgQ/Ah8XoVhjDWjNGCA6/X0ah UmUA== X-Gm-Message-State: AOJu0YxGf3/ezJnOYdXO6iQCs1Fi1g35I/TK7IGGBmgYQA1GskenU12O 6R6md4c1cn244MB7MlXcXbeB6VWrz5UYgXW2nm0= X-Google-Smtp-Source: AGHT+IF+p/ax4k+cUCTVGRGpz9xORswfLPi+aD4UcE/WqebmCeIoMJykyqE+Bnvf52+akjSG8lABCA== X-Received: by 2002:a05:6a20:e118:b0:18c:26cc:c054 with SMTP id kr24-20020a056a20e11800b0018c26ccc054mr17526031pzb.7.1701225751120; Tue, 28 Nov 2023 18:42:31 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j17-20020aa78011000000b006cb95f6aa0fsm9674900pfi.150.2023.11.28.18.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:30 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v5 00/10] Replace zero length arrays Date: Tue, 28 Nov 2023 18:39:07 -0800 Message-ID: <20231129024221.57653-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 v5 - revised version of dpaxx ip_hdr fix rebase to 23.11 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: replace zero length array drivers/common/dpaax/caamflib/desc/ipsec.h | 20 ++++++++++++++------ 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, 38 insertions(+), 22 deletions(-) -- 2.42.0