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 F10F8433F5; Wed, 29 Nov 2023 03:43:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5612842E41; Wed, 29 Nov 2023 03:42:39 +0100 (CET) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id BDEFB42E32 for ; Wed, 29 Nov 2023 03:42:36 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6cc2027f7a2so3333097b3a.2 for ; Tue, 28 Nov 2023 18:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225755; x=1701830555; 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=dagRMJHaVRMpvaEkyqNvCxeMWieIiMUhix5RMHuTCqoCy4X/94pw4h4hUqo7Q0AxXr 0SKDR4RTI9SEG1Yl8GzReJvUu/V54Eov51gj60qZKGXXHD1Tgz2UxBycVbufR2gZq0bd V+c0lOr/y3/qKmwq0ovY4/muWE+Pi283C31XTq6UNHR/+f0nRItw5O0CqfFFw85ofQSK FXjPYFlawzsu+iLxpYBANVB9itk1BFCqvhr63hdpve8CD2+b5uATBY55Uo/sEJjSK3p3 GKu3zpuUgfyiCpSoc5zTJ9OJDpTNZLzWDlpHZwOII33NLdgEOk8x0F1kcfMNbLptIare nbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225755; x=1701830555; 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=oss3b6W7t7E11lY1XtytQYze9fktgm5ucEaS8yKYLLfFXn28zba+1SgcZQO876OE7c uc48K9E7El1IKgXVcFY+hQeg0B2SWY2ez9CWBx3rySNEs+mb5TqHbA9CJSkoDhgGRYR5 Djs7pbgcDotqLpeHhQ+tR5PvkWAzeH2P1jnHAAjLftKYyTctKj5xbI1ovXARwJjiQ/NG erS7sirUR0xb+/3aJD6iXNPRD0llmmsSV15TIP713aU+brqBUtA3v5nJZYvMtxVjOQf3 ZSrzusOXqNIoMoeFxVdfawT870r8iCacxgxq4La+hzKuC9PbPibbCXO725oj9m7+sx19 rZng== X-Gm-Message-State: AOJu0YyAHw9By5c3kjhy/9m93SLAfWKydfTzWLT3+sCxOtyxD1aIgsam pmgtf30x8AViPshKmnkUzI8sPagpoQICzkUvC2I= X-Google-Smtp-Source: AGHT+IGYmLuOsnMjLMT0lMGSaXs74Q9Eu2EdXn45PbltCwcJlR4ggjhzBC+kC0JGU7KVPUz0jD4GTg== X-Received: by 2002:a05:6a00:813:b0:6cb:42de:24e0 with SMTP id m19-20020a056a00081300b006cb42de24e0mr18122595pfk.28.1701225755643; Tue, 28 Nov 2023 18:42:35 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j17-20020aa78011000000b006cb95f6aa0fsm9674900pfi.150.2023.11.28.18.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Cristian Dumitrescu Subject: [PATCH v5 04/10] pipeline: replace zero length array with flex array Date: Tue, 28 Nov 2023 18:39:11 -0800 Message-ID: <20231129024221.57653-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231129024221.57653-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231129024221.57653-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