From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F0050A04FA; Wed, 5 Feb 2020 13:51:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B3EC11C1F6; Wed, 5 Feb 2020 13:51:09 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 5CC4E1C1DB for ; Wed, 5 Feb 2020 13:51:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580907066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HSvXBfsfcl+Zq+uIOYuHy2ChyjOjs+3myOrisqB6Xoo=; b=RyXUYJ+YhMEGzyI9hS0eTH8uNPkuA8CR1S6dfU4RTMKtSCmgOzlB7XxI7MeVTm2AI7hN2u UlRhWH1GQ5FiR1phx6eFe+wryIvTrIkeYVkYKOCiuITohElgrlE8LgXTcCehYLmW4JoCAZ 53QzV35JWODYSaP3qerhQatzDE891q8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-413-iUeFytDFMrOcgv5poW3xFg-1; Wed, 05 Feb 2020 07:51:00 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ECBD91081FA2; Wed, 5 Feb 2020 12:50:58 +0000 (UTC) Received: from aldebaran.drizzt.lan (dhcp19-189-71.ntdv.lab.eng.bos.redhat.com [10.19.189.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id A744F790C0; Wed, 5 Feb 2020 12:50:57 +0000 (UTC) From: Timothy Redaelli To: dev@dpdk.org Cc: vladimir.medvedkin@intel.com, stable@dpdk.org Date: Wed, 5 Feb 2020 13:50:42 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: iUeFytDFMrOcgv5poW3xFg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH 2/3] app/test: fix building with GCC 10 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" GCC 10 defaults to -fno-common, this means a linker error will now be reported if the same global variable is defined in more than one compilation unit. Fixes: 08e0c7581468 ("test/fib: add performance autotests") Cc: vladimir.medvedkin@intel.com Cc: stable@dpdk.org Signed-off-by: Timothy Redaelli --- app/test/test_fib_perf.c | 2 +- app/test/test_lpm_perf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_fib_perf.c b/app/test/test_fib_perf.c index 573087c3c..dd2e54db8 100644 --- a/app/test/test_fib_perf.c +++ b/app/test/test_fib_perf.c @@ -35,7 +35,7 @@ struct route_rule { =09uint8_t depth; }; =20 -struct route_rule large_route_table[MAX_RULE_NUM]; +static struct route_rule large_route_table[MAX_RULE_NUM]; =20 static uint32_t num_route_entries; #define NUM_ROUTE_ENTRIES num_route_entries diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index a2578fe90..489719c40 100644 --- a/app/test/test_lpm_perf.c +++ b/app/test/test_lpm_perf.c @@ -34,7 +34,7 @@ struct route_rule { =09uint8_t depth; }; =20 -struct route_rule large_route_table[MAX_RULE_NUM]; +static struct route_rule large_route_table[MAX_RULE_NUM]; =20 static uint32_t num_route_entries; #define NUM_ROUTE_ENTRIES num_route_entries --=20 2.24.1