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 27E1743355; Fri, 17 Nov 2023 17:21:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35A6242D0B; Fri, 17 Nov 2023 17:21:01 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 1633A427D8 for ; Fri, 17 Nov 2023 17:20:56 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1ce627400f6so4610515ad.2 for ; Fri, 17 Nov 2023 08:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238055; x=1700842855; 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=kTuO9VtDRz+m5QW+PF+0IkB1Bw023prdkAXlm+Qq6ec=; b=dqxeExM38FxSZbdJjR1mDXme0OSpbX61I6nWuJMnWLBUQR2NEP8r8/UZPgqvR1bhGc +PDHrtCiTtHdCPxRRXSh0ooYyCnGQ/f3Jh83imGExeNm2XwyVnZM/PZBjPe8BsGnEOGe g/34Pu1aehuxkP2xgoyvKR0dPXGlD2rG/pPs0SrkzbNIxym0zOcmumsWRoK4is09nq6K o8+ajPkxEDkMB6eDsTEsQXsoNWwIWfzOpYh2sbxRJhLD1VPFdQv4wpDRmT1nZycr5Mgn CNjZSKnGiJddh6qo0mAuLjQpHEmtd6vl5vct+O1y2kL2Aqh+8tH1Yi03dBz7KpFwIwQt gh5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238055; x=1700842855; 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=kTuO9VtDRz+m5QW+PF+0IkB1Bw023prdkAXlm+Qq6ec=; b=C1+ywmRCYMiX3QnpG7jT5EZCGMqal5EmKNoBjptZd6AfFPob8Y2dGKHs89TnsMUtB9 t1h7hHwAYXjLICfCAiDLGOMeWH7BIjUSdI1hHHqeqE8+T74rP+ZX7KrnA6CBi07i2zGV gPewRSkYpT7YK35dWvdfR1ZmmMOmhMuVP1Z/KYL57TvpEJQ9zOOhd7AtIh/qKKeFBs1Z M8nwCe5U8bBAMfJDqU3rDJjvFZhm+Ug0QS/wvnkBnUQBfTFED6ptDTRPEzc72L+l05Y0 jqJM4RZYmvNJpeLHYxnj8qepAxTByZG4UWbstH278Gx/8PCxFhvA8qskfOK8UOv7iCGk bgbA== X-Gm-Message-State: AOJu0Yzy32BCpvMtQBKmADZ0+ksQNb/jcrfah3dXbjqr9Uh2LSvPTfwE 65YFis3fjr4oFfZtQW+jMJYubPt5Wmr3ehriMKs/sg== X-Google-Smtp-Source: AGHT+IGabr9iISEqX0TaA3RP0JEG3dDwwD7IbkKBFNM9ffcEl5NEwYLXAHKpwPf9mekQq1ayfv9FyQ== X-Received: by 2002:a17:902:e541:b0:1cc:33f1:3f03 with SMTP id n1-20020a170902e54100b001cc33f13f03mr97126plf.2.1700238054953; Fri, 17 Nov 2023 08:20:54 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q15-20020a17090311cf00b001c61df93afdsm1564759plh.59.2023.11.17.08.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:54 -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 v3 05/10] net/nfp: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:31 -0800 Message-ID: <20231117162040.241466-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117162040.241466-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> <20231117162040.241466-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 --- 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