From patchwork Mon Sep 21 13:38:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 78188 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EEE09A04CC; Mon, 21 Sep 2020 15:38:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 364D51DA54; Mon, 21 Sep 2020 15:38:42 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 697DB1D942 for ; Mon, 21 Sep 2020 15:38:38 +0200 (CEST) IronPort-SDR: eQJ2D0pVoMLNNN+p7KTXhB5rWfNHbzmO/rk4c32TuHnd7v/bON68Lb9VdgPntXUyuTEUWar8kk e33PH7u7MA/A== X-IronPort-AV: E=McAfee;i="6000,8403,9750"; a="140387198" X-IronPort-AV: E=Sophos;i="5.77,286,1596524400"; d="scan'208";a="140387198" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 06:38:38 -0700 IronPort-SDR: huptdtLAr9+tsMXliHA/mB77O7s5bSK61ndJ9jKKhvEfMGCWYYt1I2tvIYG4zi1ZEWBwku7I7Y wUeRSqO/7u2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,286,1596524400"; d="scan'208";a="510074287" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by fmsmga006.fm.intel.com with ESMTP; 21 Sep 2020 06:38:36 -0700 From: Ferruh Yigit To: Wenzhuo Lu , Beilei Xing , Bernard Iremonger Cc: dev@dpdk.org, Ferruh Yigit Date: Mon, 21 Sep 2020 14:38:29 +0100 Message-Id: <20200921133830.1575872-3-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200921133830.1575872-1-ferruh.yigit@intel.com> References: <20200921133830.1575872-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 3/4] app/testpmd: fix build with gcc 11 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Error observed with gcc 11 under development gcc (GCC) 11.0.0 20200920 (experimental) ../app/test-pmd/config.c:1777:61: warning: argument 3 of type ‘const uint32_t[n]’ {aka ‘const unsigned int[n]’} declared as a variable length array [-Wvla-parameter] 1777 | port_flow_list(portid_t port_id, uint32_t n, const uint32_t group[n]) | ~~~~~~~~~~~~~~~^~~~~~~~ In file included from ../app/test-pmd/config.c:53: ../app/test-pmd/testpmd.h:764:67: note: previously declared as a pointer ‘const uint32_t *’ {aka ‘const unsigned int *’} 764 | void port_flow_list(portid_t port_id, uint32_t n, const uint32_t *group); | ~~~~~~~~~~~~~~~~^~~~~ Signed-off-by: Ferruh Yigit Reviewed-by: David Marchand Reviewed-by: Phil Yang Reviewed-by: Asaf Penso Reviewed-by: David Marchand Reviewed-by: Phil Yang Reviewed-by: Asaf Penso --- app/test-pmd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index b6eb2a57a..380f3b5f6 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1774,7 +1774,7 @@ port_flow_aged(portid_t port_id, uint8_t destroy) /** List flow rules. */ void -port_flow_list(portid_t port_id, uint32_t n, const uint32_t group[n]) +port_flow_list(portid_t port_id, uint32_t n, const uint32_t *group) { struct rte_port *port; struct port_flow *pf;