From patchwork Fri Nov 17 16:18:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 418 Return-Path: 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 3F05343355; Fri, 17 Nov 2023 17:20:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6F55402EA; Fri, 17 Nov 2023 17:20:52 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 59A3D402C7 for ; Fri, 17 Nov 2023 17:20:51 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1cc3bb4c307so19661685ad.0 for ; Fri, 17 Nov 2023 08:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238050; x=1700842850; 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=6LTIpwrUGExBcqrL3CG/utvQcO3i1mTTNav193+UzwI=; b=XMIz/892QMmFjQ6czV7dbD/kUIOqNiIB3ORNNQRY+pcSYMPcULWt+/2p6DW6dDMXne UnASAYsBDM7eoX3wfCALGVIhgJX3I5gBE54afkcCw6iC7v1ux8IzOd258Dd9AA7YMTLC M/1JR/4Xn8tCm8fNUgWhnyV7mlFomMGdklJHdY0z56RUdcKbsGsSZP8v/2u9V/XduU69 sD3pIQwM+0/s039p+zG2NG8PZOCfkbZkoMzfyH0Hp7obd8zCUcF9DRx9vtgCibndgDjO hDlj6LNff7Z6MX7eBsTWWHUQ1WF1pH70FauQb+7voy4DRDldUmKn4sEBs7TkY88u+urx i49A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238050; x=1700842850; 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=6LTIpwrUGExBcqrL3CG/utvQcO3i1mTTNav193+UzwI=; b=PTh8JOaB6W+nPIQQfh6VJDo5dRprbJaCVRwhioudKlJZcZC77OkCMMq5mrcIjcbJLl QMBIOLeyUEYAoIFk+u/urNIrid2nujeAEi5ai2XrAAGYIYJie0OxsIc+NBWBxFwUnhSZ SWzc6Nln1/rYJDgJ6/ekamh5aHcVsa32reAJ8wneoY7EjzmgjIlbyrclk+nRxK3cHHYZ 7e4p4GIkCH6CCkod86Vw3+7mi7upQ2yTJL6CsPhWrz76RieE9gcU0vgFWQYOmN4Tw6ze z5koi5RAgD3jt3jbduukgLdfWzRQnSvZhJq6PaybAIpFHe2pl0iOH/3oS1m17cLEn3nF RODw== X-Gm-Message-State: AOJu0Yxf/ewtFqtzzQhdcAwkAvqbMvdmas2F8Jghc+mrXsznZ5oGe5uN wPV5uLLkp04Vd92T7f/RkIUD+qCYmPcTFqmAkjydtg== X-Google-Smtp-Source: AGHT+IFWBHhhG5AYG5pPDf6oht7ZHyVMl1X2z0o6L2lDWRCLfwRRQNQssFVAcVcfk1poDZwvrLVnog== X-Received: by 2002:a17:903:234d:b0:1ce:5fce:519d with SMTP id c13-20020a170903234d00b001ce5fce519dmr95042plh.15.1700238049751; Fri, 17 Nov 2023 08:20:49 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q15-20020a17090311cf00b001c61df93afdsm1564759plh.59.2023.11.17.08.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:49 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?utf-8?q?Morten_Br?= =?utf-8?q?=C3=B8rup?= Subject: [PATCH v3 00/10] replace uses of zero length array Date: Fri, 17 Nov 2023 08:18:26 -0800 Message-ID: <20231117162040.241466-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231111172153.57461-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Series-acked-by: Morten Brørup v3 - fix misuse of flex array in dpaxx found by clang v2 - rebased on 23.11-rc3 more places started using zero length array 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/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 | 2 +- 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 +- 13 files changed, 15 insertions(+), 17 deletions(-)