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 6D92A433F5; Wed, 29 Nov 2023 03:43:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4481542E55; Wed, 29 Nov 2023 03:42:46 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 5D52442E46 for ; Wed, 29 Nov 2023 03:42:42 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6cb74a527ceso5070975b3a.2 for ; Tue, 28 Nov 2023 18:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225761; x=1701830561; 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=M5CR3zIDCcGvCorkT+EHyYJhq0Ow5c74Wbwerb3znadrY/aeiXytoQR8r0umz4s6D0 RqZnaWNFTMbnAsXgpqJBcOnj5MuhFUH27TghMKwe9sP1UX8P30LgiSeo6SdN2oCUT3MH tsrsDgHn6q5FF9iNBRVLIJTN6/SWB7F6/dd0HozH5lB+SiLfuqP6k9TQTPAxomLLHeUg nsHrkmOOQOuFhc5MxVi7bYkADU9YGyyx5jffD17r1rSBS7xlhLsBr3aOwwCP4pj432pM 3e7vWhSwbWOkOIwzw933WLR9BnjtNe3pcDY2dMyKYPIAR0Q1kM+adSQlWnvj+5v6Y3PJ gwQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225761; x=1701830561; 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=hRkB69B7F7zgC6E5klFCtuxtj2rRSiWyIq4clwJt3/TwkzJER1BDaidG+/sEzS1KvJ LUgQVsYqJlYin/jVaN2huIUXYo5unrzRvwRriMHjGKcwnJOWOE01EwggbVyEbprM+8Ck dpAZcfiXiKuGvyw3SRtARK968Uum7ixtQk5L7HXVfSxtyGE86QKQE6ozvM2cda0KFZ90 Lj+kdS0eTrbsIgdzPCNJo9sfmQmSi3ihPcdt6nl82em4U3eEabMF94hFOQWdCgPSTj46 wEVSl5KZTFxnaYyxnGIa3bo2mu5y0pBKAo0XvrDti9z3KTB0wao6ksBSLTjg890n6jRK ft6A== X-Gm-Message-State: AOJu0YzAbYav88Y5VKWgGljJtiPxNOGjLFDW0CepmtLeetB84fgc/TzG L3y7NGgiSQNJQAJHgt/KFbwd2OUDJiXASRQ8F8Y= X-Google-Smtp-Source: AGHT+IGBWUQeEbPn3pUOLDnDTqJXbli7a/g/gSE33sEB7jA0c3X5mmdOvdr7UrdzAKjQbb5RMbLJjw== X-Received: by 2002:a05:6a00:1ca3:b0:692:b6e8:ce88 with SMTP id y35-20020a056a001ca300b00692b6e8ce88mr18718693pfw.17.1701225761381; Tue, 28 Nov 2023 18:42:41 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j17-20020aa78011000000b006cb95f6aa0fsm9674900pfi.150.2023.11.28.18.42.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Yuying Zhang , Beilei Xing Subject: [PATCH v5 09/10] net/cpfl: replace zero length array with flex array Date: Tue, 28 Nov 2023 18:39:16 -0800 Message-ID: <20231129024221.57653-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231129024221.57653-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231129024221.57653-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