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 CA326423CA; Fri, 13 Jan 2023 22:52:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CEF0642E27; Fri, 13 Jan 2023 22:52:16 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 1796242E2A for ; Fri, 13 Jan 2023 22:52:12 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id i1so2096696pfk.3 for ; Fri, 13 Jan 2023 13:52:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=yxRJKOel3ddFoVjoxAMJqlcoEMeJ7+fCyMG/1FgZA3M=; b=Av/bhHH/jEXIh3BO/mi0ROHFG6i/9QjHyvr3tGwzvcjztaYFasIO5OR960JZW7pgTh 1uFzPXWokH640Aw1zpsKRJEiGWRbw1TSHdNjHXu/Oio+ATNz4u++yTADfRFryfrLzvVw z9E6TEnAzONoQ1/u1iSw3JMcYqV5wCgV+FWs0gV1UC2WpH7GaSJV1v8c0ewh+PEjqbd2 uTDmuwsREzilyYfNtGD7Voow8hV8PTUANQJHXk3CLCM5Y5Iwl6sWLY+gIoWrX0/1s/ek aWcluGusMGurVV+cdF9EArAsxSqC4I9svr/u5i/rElC+Sm/ljH6WunskfCqyLj2s6wCg gS6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=yxRJKOel3ddFoVjoxAMJqlcoEMeJ7+fCyMG/1FgZA3M=; b=fqCuXfsnDS1qrmH6dNpwtE5O7yLd60scTbW+DDXSjNRr7mybMnJvVmXklXaohb7gSX KvKEBB8eXSMksKt932kqTMcXuLi188vDeI/3xVhrU0TokAVke9gX4kX7JVCBvx2Eqy1w i9TdxO5hSD0Cv2qbUQeXrVnyJsfKwtoyl8jfFqYHF8+1IdqEV/z4OURIuJUBVZh6LLRz 1/jYGYXij/X9ZxahmNb8fo25BogfPpynkFZfBja70ddH8TS3UHZND3S39GIGla6rOrTT ObHCwMaRtWgB91yepvb3yAs27p6zkPFMTNMdBBMLlr54iKyZT4x8dm2x7a2hos+8Ucst 4QoQ== X-Gm-Message-State: AFqh2ko50MNml2JIoH6ArHT0NQf5HMOVBdHyZakg8nLTWn2k1DPfLnd9 swog7i3glCyg7kCbg17lnRr5BzAvw4Lguni7qrw= X-Google-Smtp-Source: AMrXdXtOsY57r9+BHBt06O9nzMOKS4K42ly8WRb1XBA6j6swWfu9hpArzkz5YtHXY7q8IJBZO+vtpg== X-Received: by 2002:a62:1753:0:b0:580:df2d:47c4 with SMTP id 80-20020a621753000000b00580df2d47c4mr11044143pfx.19.1673646731907; Fri, 13 Jan 2023 13:52:11 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id m190-20020a6258c7000000b005821c109cebsm9543995pfb.199.2023.01.13.13.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 13:52:11 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chaoyong He , =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH 5/7] nfp: replace zero length array with flex array Date: Fri, 13 Jan 2023 13:52:03 -0800 Message-Id: <20230113215205.125767-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113215205.125767-1-stephen@networkplumber.org> References: <20230113215205.125767-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 --- 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 04601cb0bd25..ee8b439d617f 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.39.0