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 1180B43381; Mon, 20 Nov 2023 18:10:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 817DD42E4F; Mon, 20 Nov 2023 18:10:02 +0100 (CET) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 0AD9942E3C for ; Mon, 20 Nov 2023 18:09:59 +0100 (CET) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6cb66fbc63dso1198670b3a.0 for ; Mon, 20 Nov 2023 09:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500198; x=1701104998; 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=xzP/9jCx4/55pZRCdDKWWDADwDFjewarBH8P2ukJ5k9wX7hjURFAJGk9Dvsjz40YZr Uvd49CUgqflrTtkDzwv3YDNG5RlVMQa73IHZFrkbifHuC7tBR59ls2dV+KgPTb0iFqkt vru0Kr15sJ+K6C7OI1JtA2602qRIlv8HOd3rgrvP1UMM8UHKiEdRfTXM3d7teUti+2SB otBT5Z0L2d1IRN/fmHosGq8W3XNdr/QXLJOmspNIj4I901FBwYlUa4BiwfdaORiFE6h+ k2yqaGasAo8LJt/qKbJP9KyMGq+AG2XlRtE4zKTyhCFosP/L0F22Vb5f0X8Qt7bpk2IN dk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500198; x=1701104998; 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=U9QiuNDo/YiJBW27KeNm3QWBXz8fwN746OK3FfsK36B7rLeBrSLJBJSFOls79OMm1s 3zRV9QCNdcreAI1wx48AaDFNnkpG8ETSG0JaR/lS9UWjuIXg2vUgvrtwvhNC1ZbpT1HL qEKQbZn1k2Bi4SNgHTNdNJ/gl4rp3yoS/u1GXmyhQcrIGFtr8p4FBb+G92sGD2dGk4wq SArIWYeeRT/SCZcg3dMiDhCDRHrl/SITyYaBWUW43JS7SKWj1TpNqWvPzYt8rg2iAvUU a6CCGodb81TQIpo3HorkUQoawxdp4KvPXFTDbusPsDJxWe19iR3iAAmqQWHrI3lW350j pg3w== X-Gm-Message-State: AOJu0Yy1baJEtT81a1gJg40bE5xzBL91Gxyrp5jQzlQUcuxTb2+YIP1q g9hyB0YTJR5g1Bcw6KZpUuafeM3JYQHpcWFsWNE= X-Google-Smtp-Source: AGHT+IFGCql5kGZGpVFt01q0SGYFD1fiTSVlOBltKOtDnaqHrmRDJz4tmRneKajSX2sL1JNSykVz0A== X-Received: by 2002:a05:6a00:1803:b0:6c3:4bf2:7486 with SMTP id y3-20020a056a00180300b006c34bf27486mr134595pfa.7.1700500197444; Mon, 20 Nov 2023 09:09:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:57 -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 v4 05/10] net/nfp: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:00 -0800 Message-ID: <20231120170942.197172-6-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-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