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 8A21143355; Fri, 17 Nov 2023 17:21:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91B43427E0; Fri, 17 Nov 2023 17:20:57 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id 1F162415D7 for ; Fri, 17 Nov 2023 17:20:54 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1cc5b6d6228so16806895ad.2 for ; Fri, 17 Nov 2023 08:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238053; x=1700842853; 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=A6+4yyS7YVr7b27wut0EVsAkSzhnqVRCAf9rUQwdIvc=; b=WYK1iQAtCaxYvQNJGmcs+qHKlLRM31pEPRpRDAGO4b2ABcDUZLSZrGnpRVtWNolWcn ntUSLc3uqbs5mwyoW71eE0M4ZIDsTJwiWaWmU7rYGlj7cjhsHDk5jVU6j+io7Q2C/XMv Q0kKR9UpRDJ4sJePC2NRAml0JWKFlXD/UXcNfeaQX6fL2Wvnfd7B1K4dmYD3ZAAX7Blf ZPwksQlVN1tqiyT82E/iSYBLXFdX4bm3nCpHHnxaj515P55UmDD+5ka9X2MmsIRJRY60 Dd9R594WknAcuksmF7Dz9ajfl3KACzmJHCpFNYeDZyD3I6iNzBEbr0ps+//xOcade1ut 3ilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238053; x=1700842853; 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=A6+4yyS7YVr7b27wut0EVsAkSzhnqVRCAf9rUQwdIvc=; b=BRJXZqqpgTtYIIGMVy55DEaXVfbusrSquqTfnmJ6l5E/osjcsuQUtDmH7dM9suUUlA 9aOfHC0lOl+SHFcRFCGvJCB9md+qPh5LzxbXoDtLfAW5eSYvobYygmI1bgt6fqtos2dg ayB2Q+1Ao0cdpx4DYz4udViKbVE9+nkwJC/HjIl/XGwSkT+3InB+nuHyQwVdcKF+x5Xi IYE4F7wRlXc6kbbii6kMJJzDY+BJZsb+w0ST4FN+4jXxcSB9/l8aH3xEqreFi+Vvz6na qceq/vndWkoqEmCmqhd0PIQG/jfk34ZdHRJYkwrDCNDe+nYC8+Yp57bq93gNis1vPGmr +gKw== X-Gm-Message-State: AOJu0Yw4pOKmXc9YBU21GkITSvl8vKWV5p0eme9pdpdP4ygOGPhCpsYs mHD8ZH0jNDqmVzjKV4QY6V55hE5gZzO9i04vPPTpkw== X-Google-Smtp-Source: AGHT+IEADBx18JIjH8Y/mVofaeO+UZMm2DOCLnhhcQE7uJ6e1LMvC4hwPiqGo2gXVJUvvPQJePYnLg== X-Received: by 2002:a17:903:24c:b0:1ca:e05a:93a2 with SMTP id j12-20020a170903024c00b001cae05a93a2mr68279plh.32.1700238053113; Fri, 17 Nov 2023 08:20:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Akhil Goyal Subject: [PATCH v3 03/10] security: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:29 -0800 Message-ID: <20231117162040.241466-4-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/security/rte_security_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/security/rte_security_driver.h b/lib/security/rte_security_driver.h index 62664dacdbb4..faa4074f1965 100644 --- a/lib/security/rte_security_driver.h +++ b/lib/security/rte_security_driver.h @@ -33,7 +33,7 @@ struct rte_security_session { /**< session private data IOVA address */ RTE_MARKER cacheline1 __rte_cache_min_aligned; - uint8_t driver_priv_data[0]; + uint8_t driver_priv_data[]; /**< Private session material, variable size (depends on driver) */ }; -- 2.42.0