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 9F9C74334C; Fri, 17 Nov 2023 05:04:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6447440A6D; Fri, 17 Nov 2023 05:04:47 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 84B274069D for ; Fri, 17 Nov 2023 05:04:45 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6b44befac59so2057003b3a.0 for ; Thu, 16 Nov 2023 20:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193884; x=1700798684; 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=7UPRtCMpCjRTkkmxXEzXuurvH65xr0QIxAIbBb4HVV0=; b=DNDU4u6eq+hIuJ/MtqVKB0GXG6l7yAEDvzkJNCe5KS9tXQIm62UXQYA2M+B0ZQenWU +sdqV0AfCOgADXdwIWFby6TqHWn9LOFrKiZ6rxhB5pE6o/BHukBcLZkH6g0R542Xms1i b/2gtaRIOq49YbUTO699nNEOeyn0amxI4eXxsjUSvFNHvGhm9CqGw/VVmsaQ/1/lx44k hMLLu5io6a9XqBQob5h77O+MXJ2X/eV44xIO0AOd6CqKP2VjVYg0rRqkKEFIc/d9TcuN roXzOWFTpiN1GFzxdISpCHgM7jc1p2unDY3x/R8kKEDTuHEz3uv2iqdKAPit+pDJBHwi 2YFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193884; x=1700798684; 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=7UPRtCMpCjRTkkmxXEzXuurvH65xr0QIxAIbBb4HVV0=; b=q1GeO+hLAVokrxJmG/mSniTxLtJw4dkYmi8gCdM+kQ0IenJPMV/j0VdYZBXDW0+Feq 3q+1AlNzQmJ+vkYQEP73ufvM0HJdB6vYPir3j6my+P/tP/umFEDB8QYJl0LfGhGsMzgP aLVoor8JvcZ3IjlQwPVU6D/FHrpOHHFU5Id7tL3Kk7OqFCSvxqf2N8WR8d9lKp9Qpd0L cmbgOkXGGeQJXsPfOTMDh6quI7px/TMnqm23ZkJ5oVtNtOF5uUxeskrHMOblQPZ3b30R PDCkzeL/i2wKi0Weklf7GGN6HkCpSTFH3oOp5JkKNWpQjpQrCBslQ1AGatKflcsb4ecx WRVQ== X-Gm-Message-State: AOJu0YxkgkRDsL4Ug24ocQD6xbXYuP7cWxlPIxV8rlZYhSkSIUELs7JF dJToXxMGsrvyQCGY+vjrWlatxrz4uPm+RJ3Kavp/Dg== X-Google-Smtp-Source: AGHT+IGtnDRlqVohxc07jLlZgtBGSmsGP3Wlh8YycCjfVnIub65ReTRa/LKlNe1YDFMfNeOIj2YM3Q== X-Received: by 2002:a05:6a21:3384:b0:181:a38c:8106 with SMTP id yy4-20020a056a21338400b00181a38c8106mr5490295pzb.20.1700193884164; Thu, 16 Nov 2023 20:04:44 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id s11-20020a65644b000000b005bcebc93d7asm389873pgv.47.2023.11.16.20.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:43 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH v2 02/10] cryptodev: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:14 -0800 Message-ID: <20231117040432.131737-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117040432.131737-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231117040432.131737-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 --- 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