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 2540B4334C; Fri, 17 Nov 2023 05:05:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F2D540A75; Fri, 17 Nov 2023 05:04:49 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 60AB940A4B for ; Fri, 17 Nov 2023 05:04:46 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6bf03b98b9bso2036969b3a.1 for ; Thu, 16 Nov 2023 20:04:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193885; x=1700798685; 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=kKwYCvbq9U5M16MDD2swmluSwPUiEShBw5Zjz7GmxVE=; b=O0WwrkDwiKPPtblVMe0gMyreIQrvrsA7s6yWBmNyTPQDipjXY93W64h3ImAjyeqbLW 9O651Q6KPymonWZlouqaxlUGbFjSd3QpiqotI3O5uIyLJoWpERvb5J7zYHW1QC6I/uhP I8CGoBzxWXph9NDvpTO6EVtGhUEUSqEuUxfAeI8kBpNgHjfr54zHI2qwuyAnJPiMCYdU oMxFJF+NIAeWo1OkCZSn1+Vx3REm/H3QgY43sW9nd9NOK/cskVrozdiMHBql3Y7bav1h N7spVZhPGnS44t3K2YRlvzH+LjwBqZ8PbHqEkBmkXLIRs8U+PTgjDgGyQ5Eh26k1aqlq rIwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193885; x=1700798685; 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=kKwYCvbq9U5M16MDD2swmluSwPUiEShBw5Zjz7GmxVE=; b=dcgf+VdmRukW/LXXVviX1mwUQ6P2iUSbNKLut/IPEoUTMh7bSxhJ/kQHKk5ZPEsAPl 52IAjBpT96b5H+YeilmxMoO1emhQGn8plAqO7llzrX01FutmgUZ05GnR7qIGlJ2ua5nV 2Mjm1HJ2kfHzSOoAYWdNHXgdyF7UEyYsbi8tkOegaVneTNqkNrNE7zUh5HMFPAZ13fOL ML90OHuP2VlfT+UdrXUNIYV/V4WNKmKTcbNbUCNxWEonmEKMjwY3lxtb6ij8OikpJG0z QQsdk4BZgJ9phns4TrI2xfP6UxQV3E+mttq9i0DYVeHe73n9v9YR23mPnxlld4Fyunuw QyAQ== X-Gm-Message-State: AOJu0YwQpc+RAfembodhoLrOLZe4q6fuhtXxOTAIWqxa24UYAZ9aMwJK kiA33xVifJQKvqpMJxgQzXN75KlkeeAz/iwbh8STsw== X-Google-Smtp-Source: AGHT+IHDk6vWDC4drkq0pHn5ugvACe6gYIazkEgtp1V42Q4OFZ8+ODIDejuI0P4m58AOTzzKaAocKw== X-Received: by 2002:a05:6a20:12cd:b0:158:143d:e215 with SMTP id v13-20020a056a2012cd00b00158143de215mr4859188pzg.1.1700193885241; Thu, 16 Nov 2023 20:04:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:44 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal Subject: [PATCH v2 03/10] security: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:15 -0800 Message-ID: <20231117040432.131737-4-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/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