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 A8409433F5; Wed, 29 Nov 2023 03:43:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E44D42E36; Wed, 29 Nov 2023 03:42:41 +0100 (CET) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) by mails.dpdk.org (Postfix) with ESMTP id C186842E37 for ; Wed, 29 Nov 2023 03:42:37 +0100 (CET) Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-6d811615efeso2232819a34.1 for ; Tue, 28 Nov 2023 18:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225757; x=1701830557; 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=LrRVZmGfqz9WzFvP5pfxqXxOiJp5Ex6HHWCKxCQUlHE=; b=Sc1tEubdk9qNI1oZPLRjadON+aqm+7F68GpQ42ilUS4TIpY1jDeDe+lw2fzhUSMy1p qhe065Bad5Nws+koub1laMg1I8XE95jNoMA/KjpO8wJG4wa44jaKJFMTvsazce6sV20n bs+RiQ6pipRxzuhqqmTH0CfnicCpab9FOlK9Lq8cVU1/fZIp+FuA1ix1h9uBC5ZK1OM0 XhMyimZoj+gC4QWdsBlDk76K/r2M0MES+o/UEyFH2zWaRp7GrA7C/y1VbxhWWwv8j03t B5kXHhLhAjNTlPzOYyJQJrbAnwfmRrdRGxQLl8GIkJAhPwHLnDd+XjwIE3xHmjl+2tP/ Fl1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225757; x=1701830557; 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=LrRVZmGfqz9WzFvP5pfxqXxOiJp5Ex6HHWCKxCQUlHE=; b=UXZ+hIHB0GH74s21lTEYZ/Cy5sn2tpasW3IoWiYKOwaMrm56EvopCcvBev7ZHQCZ6G I4i8sFBxRXcEjB9ahcx1C0eTxVq36hiFm1reF/HjvvIdQl36s6Kkc1AYjNt8/KbvEq2Z v71+W5D29D13HIDJyci2lbkAHGDlL9GT0fotGSyWBTmA88UOGJ0LHmpUpGdq6ssp4AXB 5khad70okqw7CbHFnipbE4PahuW5v1QAHxaRSsnVw2JsxQWUnxiCG5i5l1pyy6PlLsfR qI2dfMi36WQn7zU6KsnldG+XQMfs6uBwBoxHsn0NmVaeklAvymkUpEhlJQe2BCCfWtcA 3oNA== X-Gm-Message-State: AOJu0YyV5oVdHgXbK8aMjXPWFbeoAgKutDR/poVaN4z0q6v5y9fz6Bp9 zpQpdZgtIEgnNImuzTM8Zfy5dOTyvrfsC/0apyc= X-Google-Smtp-Source: AGHT+IFF/aiYbCkFpMqIddLv8B+irQQ+RpVz1EWUgQ2nL4Vdk9337PzwfVEdgnRVo8BVIgcqLjguXg== X-Received: by 2002:a05:6870:1d2:b0:1fa:136b:9f40 with SMTP id n18-20020a05687001d200b001fa136b9f40mr17029065oad.1.1701225756809; Tue, 28 Nov 2023 18:42:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:36 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Tyler Retzlaff , Chaoyong He Subject: [PATCH v5 05/10] net/nfp: replace zero length array with flex array Date: Tue, 28 Nov 2023 18:39:12 -0800 Message-ID: <20231129024221.57653-6-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-Type: text/plain; charset=UTF-8 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 Acked-by: Niklas Söderlund Reviewed-by: Tyler Retzlaff Acked-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h b/drivers/net/nfp/flower/nfp_flower_cmsg.h index c2938fb6f63c..f00d2e838d8f 100644 --- a/drivers/net/nfp/flower/nfp_flower_cmsg.h +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.h @@ -73,7 +73,7 @@ struct nfp_flower_cmsg_mac_repr { uint8_t info; uint8_t nbi_port; uint8_t phys_port; - } ports[0]; + } ports[]; }; /* -- 2.42.0