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 6555D43355; Fri, 17 Nov 2023 17:21:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16580427D9; Fri, 17 Nov 2023 17:20:56 +0100 (CET) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 57CEB411F3 for ; Fri, 17 Nov 2023 17:20:53 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6c4d06b6ddaso1991250b3a.3 for ; Fri, 17 Nov 2023 08:20:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238052; x=1700842852; 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=EIDfdb7SPqwPvD35elFoZyAHyeqtHUhWXEqW9V8Dg/0=; b=1SrmwEqEpwn30wkACrg/lKZn4PYnO9Ft4SZCZGaC8Xp1rXL4VhY+0yRTGLbuEYgkP5 Z87e0KSobxh5ndFNqOFaEJuFqzBUc7ipDb7KgQRO+QNoNCxJPhhUD4KwYLH1NEul6Y+q 1sM91jFjkz7Sa4V5ngGSGcZj8Mv6FxD5VCGjnwRfRXQvXOdlw4aqiaQ+zy5P+/AL7heV ty2O4niEJbdqVIUw1d9WyPcenKPDjVrBcxoNKX6QAoPrzTqX9NPTFoNRvHJZMssiaYG2 IT/CNKYYfHwfjFCRW7RsFDgmJcAIvicBU61ss1IMPm+a0eTnANUK99gBa9ujBFxSOQRN 68GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238052; x=1700842852; 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=EIDfdb7SPqwPvD35elFoZyAHyeqtHUhWXEqW9V8Dg/0=; b=rbKRSh6RMTaZe4edoE6+0f8SYriBO8C0Y1J09esFGkC0ngxGx5RFG+W/pxzCde2VyB ogWkoZOXrpQ2Gn0YcIICoh1JgvV0u6Z9sX5PoiOIIwsyrIe99jXM45/TiArcir2tnio1 CxQOV1twyVboF+Ff5Ypa9sshVDk/PNjI1zt03L4Bhi76G2uNkInBj3CFetK4qLJMTIyM soAnvKwCAmCkLfaMWp+xowc6VJZeM5vsJUSH07Ra7L/3iiSPjZc4Fc+EFu8AbmgFZo0C 0L4CSJ8c7mnOVwQs+XJ32QgjUNER01JCTH7erRk/uldr92u99/WEBiXEmpKSbin1kfPm 0ZJg== X-Gm-Message-State: AOJu0Yz0QacFE71635E5BUfdOMkoPv3npiDWNusOyzq/16n08ggMg94+ m8Qjn4kluunSWCDrScH6HyH6VH91ge0L6LgbcHjcDw== X-Google-Smtp-Source: AGHT+IHMEYDme6HpV2RIFpfLSElSfIl8XbBiBpk7uI42gsNNCr+aYoR0pXXz9/Tk1+ox9D41qiWoFw== X-Received: by 2002:a05:6a20:4297:b0:187:dd5f:93b9 with SMTP id o23-20020a056a20429700b00187dd5f93b9mr5154925pzj.14.1700238052228; Fri, 17 Nov 2023 08:20:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Akhil Goyal , Fan Zhang Subject: [PATCH v3 02/10] cryptodev: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:28 -0800 Message-ID: <20231117162040.241466-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117162040.241466-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> <20231117162040.241466-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 Reviewed-by: Tyler Retzlaff --- lib/cryptodev/cryptodev_pmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index 3bb3d95c1338..0732b356883c 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -153,7 +153,7 @@ struct rte_cryptodev_sym_session { RTE_MARKER cacheline1 __rte_cache_min_aligned; /**< Second cache line - start of the driver session data */ - uint8_t driver_priv_data[0]; + uint8_t driver_priv_data[]; /**< Driver specific session data, variable size */ }; -- 2.42.0