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 DBF2F4334C; Fri, 17 Nov 2023 05:05:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7499540A87; Fri, 17 Nov 2023 05:04:51 +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 2A5F54014F for ; Fri, 17 Nov 2023 05:04:48 +0100 (CET) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6c398717726so1454462b3a.2 for ; Thu, 16 Nov 2023 20:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193887; x=1700798687; 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=Cz1MaGDtejvL5poGkQPTKW87qH80W9XwX4k+lqy0vHY=; b=FWpQhhtV4Xhkm8HvyQ+jHhSCoqhQ2ahcMW8uUMpd4BhrbB7nftWGqSkU7eo6ipfzRX v4C+B570PGfmriNxnnj8/xHiHEzAawIE26fnRWFzKbn/pIlu5NZniFFbsR9HQL5a/Yfe ozHWA65MrXv6AYrlAu6/UEkW75wdhteA+B/Uy2PI8SQ7TncirtyAYfgMA2hunDEfJBln Vt8c7x+xqRqGhZ+DvuqUAiWFxFnpbR1rSlC2vr80Mz82urlq+sASUUhC5DKBDUZjL7po oXh1E2BqdVuzIqEieyVmbU2y+SL2penhniQyWeexcXbnzAN7HQVJCBhLne03xoFnoxYo SsQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193887; x=1700798687; 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=Cz1MaGDtejvL5poGkQPTKW87qH80W9XwX4k+lqy0vHY=; b=V6IctCh/Z/V0IM1ZUGUKlXB2aGfoeEmLFAmvHYzDUEZDmUNuE2EbUiqqnRVPi5Ytpf LsJ+MFpIfvTG3bJu2ceY+PB6ct3BGNOWXs/AnYGXq8BqinW565Fr03yjk+tENFVA2e8K a62lMLtv0oF7fqXI8pIFfoEnD5SeTHj9VWYc+ca7+IS3wPsopWdO6c6p6d13ijdZx3Cl wywo2tV4QNxkuaJcJJ8+xSMbJSW4KhyRUnuB58Gv8X9ddDn14qvGqA0c/cSCXXoYmoNo TsIwY1iwF+skOhUTHfBGPjQ9FmUhwH+avSJEZ+hxvGWA1sjTxttqtiM9KkuOcnd0zm3H vEsA== X-Gm-Message-State: AOJu0YzRGc06kLoSrxOpZlW0nHbv8ptUe6VZ/5YX6Pq6+O7bSjnZyF4b W6/i9HAI8hYKiSbhyVhxKXdGJT5eewTD5wGRcCCEzQ== X-Google-Smtp-Source: AGHT+IHmjsy5pntLYVAwwaLvW3sKAdX5dFujbE3iHIq4vtEuKx6geCYjYqX3VRo1hBbqMbHJ31jDTA== X-Received: by 2002:a05:6a00:10c1:b0:690:c75e:25c8 with SMTP id d1-20020a056a0010c100b00690c75e25c8mr18763081pfu.7.1700193887137; Thu, 16 Nov 2023 20:04:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:46 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Chaoyong He Subject: [PATCH v2 05/10] net/nfp: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:17 -0800 Message-ID: <20231117040432.131737-6-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-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 --- 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