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 9391D4334C; Fri, 17 Nov 2023 05:05:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D109340E36; Fri, 17 Nov 2023 05:04:56 +0100 (CET) Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) by mails.dpdk.org (Postfix) with ESMTP id 66346406B6 for ; Fri, 17 Nov 2023 05:04:53 +0100 (CET) Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-35942cb9ef4so5957525ab.3 for ; Thu, 16 Nov 2023 20:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193892; x=1700798692; 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=i5kzzoWRuXlnoSGzz8VOgtAixxAobaSo4Uf7RLlJDTI=; b=zr5GNH8Kvfi6kG7rAHa4tNgrM+HGLXzU9zEsTrPnwaU+mPNTBK3TrSVEQ855p95np6 8lj7oB0KvyBdJHyGPKjUh3/XetBmVXMGjGgaIUtUBczQcUHEhhQSjD++TScaiGOvoc0v CqRA+5M7Qn4V1QcEifoL4kUTfQpUCdJW9SN5UBcihiwQy1w1vpTwM7cfyxRy1+N4X8vm sTokeuocC5AEomUiVd5N692AugJ7fXU4tcvfgMGHGJ4nObu4zHA5QV1EHd0Mldj10KJj 7VW2segohOU3DyEmF2WqpYuO00LPF+iaZzbEa0No5ENSnnHJA2GkXwsEwHRTUsnVrm1x tCfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193892; x=1700798692; 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=i5kzzoWRuXlnoSGzz8VOgtAixxAobaSo4Uf7RLlJDTI=; b=VGY3ExTPMxpoFqIhUAfgMiotkJshezKkiapJlrJ6JT3kTUdlbeVKpUJOy5kOdNOstK wfRIvs8eDL3OA5ogsh88mRycOp1qeBRSrHuoe3Y4+x94qbOhsKmWG99LhiU3w/EuJbI+ P5I9YEx21q/uvpNYL2SdVAQrsM/CfTGPGFLWMvJPG5oKhQHfUQnkhhpRFUN3nrOF9T7j vLPwCuOVnkSjj1duBB/PoJPAIGpw2xdvO+wskxn2XEpjZL4FxiWWBdGLgPOamu6+rwkd 0VDm3wDKYk/vQsskpYEz2S4FkkColLwk81uP+3VIGPkkyQw3S6bMgK/OVaP8khUvkyki ig4w== X-Gm-Message-State: AOJu0YxYZZQmBQu/Cu3O+DsV/TS6p/Q0bLDTtURgxPYlo4W4tCRN3XKa cddYzPzRTrnEMp72ojNrqJbxEk5GbR5L8SFFowvxug== X-Google-Smtp-Source: AGHT+IGuKu6XWkPuejRuzdesHMCdO+cV1nqcSP/2FgyH+MRotgKK5IzidfPNRbgvaWuNb4Mu9Rmxqw== X-Received: by 2002:a05:6e02:16cc:b0:359:398d:7c31 with SMTP id 12-20020a056e0216cc00b00359398d7c31mr25795251ilx.4.1700193892598; Thu, 16 Nov 2023 20:04:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:52 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 10/10] common/dpaxx: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:22 -0800 Message-ID: <20231117040432.131737-11-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 --- drivers/common/dpaax/caamflib/desc/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/dpaax/caamflib/desc/ipsec.h b/drivers/common/dpaax/caamflib/desc/ipsec.h index 95fc3ea5ba3b..7bd82e4d0639 100644 --- a/drivers/common/dpaax/caamflib/desc/ipsec.h +++ b/drivers/common/dpaax/caamflib/desc/ipsec.h @@ -350,7 +350,7 @@ struct ipsec_encap_pdb { }; uint32_t spi; uint32_t ip_hdr_len; - uint8_t ip_hdr[0]; + uint8_t ip_hdr[]; }; static inline unsigned int -- 2.42.0