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 3E63643381; Mon, 20 Nov 2023 18:10:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7599C42E4B; Mon, 20 Nov 2023 18:10:01 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id A64DF42E35 for ; Mon, 20 Nov 2023 18:09:57 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6be1bc5aa1cso4723349b3a.3 for ; Mon, 20 Nov 2023 09:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500196; x=1701104996; 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=+RIkijSvF4hNTPNUihSrigAotEHCXmQgjpgfk7u1xlE=; b=f9i+DblUg5aNIiKJccurswNV8n66Giyrt6QkzMhU03RTB4UjC6bQAZ6ViTWlhsuQAJ 3WF6gdlfDwxKDT4ZeHrjSYXl9hSf2j6t8LyroMdo0vkeh4XhUDuHYYSzQffmuKibV+8t EPG1+xAAt1qHzyR15ZgS5PhjQs9/ps0agWjW6uIqsqAkHfd8585/SVyprGi2/jeW0KMO 08Qb9cI53VqhcUyEWneUNdZ9tKLgI9rkqfjUzTVrCi+a1zngiLMsVNZc0OO88p5wRDyy vn/sOyZOcXEw+D+QbVVPOGDQ0V0UFl1eL25OPvn+4mvNEavBr5vw+VIj0/6aRIDzdIXS Rgrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500196; x=1701104996; 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=+RIkijSvF4hNTPNUihSrigAotEHCXmQgjpgfk7u1xlE=; b=O/WeL1aaOgVAqP/FIg+Dyvy2FIEojBXGrra3yLu/wRpk4MwxU7dxJbNl4aC7hOoQmZ AtBmDYB8kgeweUxnvz8GU7CzTj9RNMhk0/RFyro47ICHi2tikMnUDqcOWZdHoPboKqaP hitcWW0kKLYX03a6SVvjF+gSxu5l7csTCNGdlQz/Znf639/NxXhOBMvXkMLYaPvLEMZ3 m3iDpT65y75sPBWv7C3B2/yvrZ9QxFc+afIDA76iYnEpPzHeMhIBHVUuQlxeG/EsnEfw r/BO9awt+XSyY1x/ZfHiCZt95kcBuc8SN7zXklNkzqrJzT1fHg8w87BIgIYqwCPInyJU +Urw== X-Gm-Message-State: AOJu0YwJW5g6xXtRS2DwG2c9idXbdSfUgIgvgjQSA659kIetDlYyMkAK vz0afvFqn9mbRkbmWfwtJo7DM20SSYjf48X9JaE= X-Google-Smtp-Source: AGHT+IEFnHDaR1NlveDhv1dMTiCRIoZud5iWmIsUAhrFrUeV1Ek7NxWsmcxoAcJoRxYxJyGMQspyvg== X-Received: by 2002:a05:6a20:7292:b0:188:1281:8994 with SMTP id o18-20020a056a20729200b0018812818994mr10208019pzk.35.1700500196647; Mon, 20 Nov 2023 09:09:56 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Cristian Dumitrescu Subject: [PATCH v4 04/10] pipeline: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:06:59 -0800 Message-ID: <20231120170942.197172-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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/pipeline/rte_swx_pipeline_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/rte_swx_pipeline_internal.h b/lib/pipeline/rte_swx_pipeline_internal.h index a67b6e965de7..8ec12263b989 100644 --- a/lib/pipeline/rte_swx_pipeline_internal.h +++ b/lib/pipeline/rte_swx_pipeline_internal.h @@ -213,7 +213,7 @@ TAILQ_HEAD(rss_tailq, rss); struct rss_runtime { uint32_t key_size; /* key size in bytes. */ - uint8_t key[0]; /* key. */ + uint8_t key[]; /* key. */ }; /* -- 2.42.0