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 D65EC4334C; Fri, 17 Nov 2023 05:05:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC45E40E13; Fri, 17 Nov 2023 05:04:55 +0100 (CET) Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mails.dpdk.org (Postfix) with ESMTP id 9C4904014F for ; Fri, 17 Nov 2023 05:04:52 +0100 (CET) Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-35941fd3a60so5929555ab.0 for ; Thu, 16 Nov 2023 20:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193891; x=1700798691; 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=1hT2iJfhwQBSqk5iKgD0BBaFttYbOYUEINng2jJ+cPo=; b=RVg6XGLaF/oziW+kEzch12blvh4IM5HKHhXdDUvwWx1EPSUv9b0mwKXY+7Ioqzk5Xj 5Huxbv/+YR81NVv2urwBiGkoR4HWy1MPfo2N4thybaJv8YW6ytC5TWiRSj2tEFJC5UGM kjwCIkOSgdoB9jLChG6Uje29KJ87H5VMgzv5WlYPQ5nw3QPf3djm7/dXymJIigHFFFsE +Xd3VqyXOom6q8fM+TPmKL/w6DW40pFSWas8HiNSCtrMWJjRptGNrt//P6KSbmopGYQl /Sw9JlLrOyF7g60CsmTZMo0ZCC7t8yTDTDyAjXSsurd/4YEGnz3QzdzXYMQx5ESao67W rklQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193892; x=1700798692; 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=1hT2iJfhwQBSqk5iKgD0BBaFttYbOYUEINng2jJ+cPo=; b=nef4xZ90qD3//8sSqozexAyCrVLDvCci7UoTs3yyUBWfjA4fVzyHFFcLc8ZLkXjIA6 5rSCqWB3gjGSO93UxV4Xwt640sa1VPTsU7MN95exHtdUlhsHX9F62JRvN3uppN1mDbYv SbNppaZgjwFNZrUDbmvHzHvPNINGF91f6qtfwmCzTuBN91WNinIhByMb9d5z5dEky1o3 KU68Gw66s/mvaTH+0bU32fNS6nUR9r/ciYyP85rpAWEFeJsvM6fJIvHGMALCDhzqRRb6 ccKMUgMdSvPITHsdQccW28V0Nxi/UBofs7ivP4yp9ULEfmr8XlzjM57rFs4IgUwXlO3x MqKQ== X-Gm-Message-State: AOJu0YwPa1ra7IgmwM3Gi7MQHRSXW5ae3usDX7+y2Nj0BxT+5iG2N7qF Vhogx1GU2pSbchFIYSJn65eaBaO3LrwU35BLAp8bXA== X-Google-Smtp-Source: AGHT+IG/NgsIFLWR6PHsZAmT9yixBiz4cvgxHTnfZGYr9YP/+v6fRrfdHjFkI0J2JcoJr2hsqWW5Cw== X-Received: by 2002:a05:6e02:1b02:b0:359:cc15:b0b3 with SMTP id i2-20020a056e021b0200b00359cc15b0b3mr23862064ilv.25.1700193891719; Thu, 16 Nov 2023 20:04:51 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id s11-20020a65644b000000b005bcebc93d7asm389873pgv.47.2023.11.16.20.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:51 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang , Beilei Xing Subject: [PATCH v2 09/10] net/cpfl: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:21 -0800 Message-ID: <20231117040432.131737-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117040432.131737-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231117040432.131737-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/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