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 406AA43381; Mon, 20 Nov 2023 18:11:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D70042E67; Mon, 20 Nov 2023 18:10:07 +0100 (CET) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id F2B4342E51 for ; Mon, 20 Nov 2023 18:10:02 +0100 (CET) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6cb74a527ceso1018530b3a.2 for ; Mon, 20 Nov 2023 09:10:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500202; x=1701105002; 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=roMS4psLoh7+MGWqmYOTd6dnqsKKopGB+C1Oqm5J3BzlokYAL4bugYhz30oW1fKj0q uOK1QHIHOnvBA5lJv3t1/rXdkSboINHqt/xlOX2ZgrllfnTfkWj4Du1u7/fR4ZyArun7 fiKp5AQ4ma1WdI5Rr2GCmg26jXhgBbH6pTBcy3akP4NKLKqxBQnM4rJDaBgBpUsNM+Qk k9czUrrJbN7ed06Lkr/wC3Y/JgZGWln8CX/znQ5sBWrzxMPKeCmYaS7Kc1WxubRZUdak 9ZWULdF37Sz1QFS5szx/YSpMfVJTkkktnjDen21QtvRNnHCQBztS4QlbobRr+WKs6d3s 2CgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500202; x=1701105002; 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=lVN87grhwlYlsiUNHcg+LBQR3waUxKkOcJG2ntNFAcb6ivMQo3Qa8IJfBme5xAWlGe cY2/H+cTBSy6xTfXVMyC0yKe5dI7cJV0ISgF5rM5nDTdnuOkalKNmxBeFgWOul6FO51X 7FOEA3YDDm/vmOYsuc2zZ346G3UoY8KNseP7gczsxmdSf05nv7MITaJmRhWWsbI/qGMf +8ciQz+aCv7NxesJfXtU0BQTBRCcKyYs2EkNnb24I3nbbDBUOQV2mizzaLul00DtQos3 lhOKJWTRawCHOOqJUTXM1QU5Jd2GVU+LLygdsMPuHNWxZS7VoKx+1t6bZsfD9n32nw8S h6tA== X-Gm-Message-State: AOJu0Yzm03eUTV7FM8M//yLbF3K4lzAJq6OEdEyvpVL6OWd8nsxi9r5l HGonq8B8V7O4rA/rlsgxiM0xVvhkHNjGUKAoJf0= X-Google-Smtp-Source: AGHT+IGx4E+iRCXYRjqt9Fy4wNVQl6qgcKIVMz33VxoOSde0RL4ZAGsU24ZN+g76ZgdvjP8JvYh8gQ== X-Received: by 2002:a05:6a00:a19:b0:6b5:86c3:ccaf with SMTP id p25-20020a056a000a1900b006b586c3ccafmr5518293pfh.22.1700500201650; Mon, 20 Nov 2023 09:10:01 -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.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:10:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yuying Zhang , Beilei Xing Subject: [PATCH v4 09/10] net/cpfl: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:04 -0800 Message-ID: <20231120170942.197172-10-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-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