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 A0F5743355; Fri, 17 Nov 2023 17:21:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14E8D42D6B; Fri, 17 Nov 2023 17:21:06 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 991C7402C7 for ; Fri, 17 Nov 2023 17:20:59 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1cc131e52f1so24874715ad.0 for ; Fri, 17 Nov 2023 08:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238058; x=1700842858; 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=jDFAqvxBPyvNv6pRUBvjIzCBTh/F97bZyBYTdlZs4SU=; b=OBgiEpMJVuS9nvq1LWGaniZyteAVNKWxjwJ48TDv+fpkWx7dZe8oyTd7LupkdGpaQA OHOlPU4Yq18wTJLCtDtr1s7sE9Qz5Ij1llP1jNGJhtNawWu3E+gygEWkFHC4eM8AxeUM hTXcohKTZjMxnnsqAESydLX9xXPxVQx9uHKeG4+jV2LF8eKta2vRJQtk/zeIUQHJ+8lc EBBtYSThvlGtg8Uatgo0DrbDG67PCzeEdbtmOzuWxJ9tr+sBdvUt5zHv8MpaF2e+3R4o sUAk638w2PcQ9HjUUWLm4MHZ86qgyTVJNoEJ4dQlI8TuxxLE5uU2aunPFTJ4cBzDnXt0 NsLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238058; x=1700842858; 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=jDFAqvxBPyvNv6pRUBvjIzCBTh/F97bZyBYTdlZs4SU=; b=nqawO23vv58qg2gl+7TJ+6ZaDQQhvxNnliIYzI2d0dA8TqAFajMQAainzVcbeIW3qy 1OW2UzuDf+Xfp95Rct70SMgFiV2NVqHUsf4HW/mLQy4vB+cWXYS/IoWFb/akdIen6/FL AMvTK1XSlVGDXkRfbmZ0coPtaDVXdeyBUFn3iw/OI2s+I8iBeoLoxzqUfH3yjoDBPyoT INKgShTESYi+mu+C8Mue1J0Xgc2aTc8uZPDQx/oaDUiDZBO7ilYsquJXU+wV5zZPdTk8 A8BWEXq9xrYd8XF4y58rCSShnh/7gfL6if1Dgp/GNahFPc5W791X5JnDAgll4KzyLEeb o9Og== X-Gm-Message-State: AOJu0YxdfES08hYMkwy0tcKDDgkZDNaUkn5D9F+6kJZKhHZK7SCioYlQ gEx18QpI0/i7seB+EIJcyR5iztmwGLJqvl0fXXcnHQ== X-Google-Smtp-Source: AGHT+IF6PrI1Cil+XjDqsjkVycCQSB7Y2oS6UwC37uTg71V4P/MfPmvIK9+mdXIgSJalpfhzOAJwcg== X-Received: by 2002:a17:902:ecc7:b0:1ce:5ca7:1070 with SMTP id a7-20020a170902ecc700b001ce5ca71070mr2935895plh.16.1700238058641; Fri, 17 Nov 2023 08:20:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yuying Zhang , Beilei Xing Subject: [PATCH v3 09/10] net/cpfl: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:35 -0800 Message-ID: <20231117162040.241466-10-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-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 Reviewed-by: Tyler Retzlaff --- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_flow_engine_fxp.c b/drivers/net/cpfl/cpfl_flow_engine_fxp.c index 8a4e1419b4db..39a281fa61ee 100644 --- a/drivers/net/cpfl/cpfl_flow_engine_fxp.c +++ b/drivers/net/cpfl/cpfl_flow_engine_fxp.c @@ -53,7 +53,7 @@ struct cpfl_rule_info_meta { uint32_t pr_num; /* number of pattern rules */ uint32_t mr_num; /* number of modification rules */ uint32_t rule_num; /* number of all rules */ - struct cpfl_rule_info rules[0]; + struct cpfl_rule_info rules[]; }; static uint32_t cpfl_fxp_mod_idx_alloc(struct cpfl_adapter_ext *ad); -- 2.42.0