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 D7FF8A058B; Wed, 8 Apr 2020 02:09:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 40D821BE8E; Wed, 8 Apr 2020 02:09:11 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id B65202BE2 for ; Wed, 8 Apr 2020 02:09:10 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 553335C01AE; Tue, 7 Apr 2020 20:09:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 07 Apr 2020 20:09:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=+l+HGNUxv3 rcQgzr1YSq68Vkryju7Zae3vTc2TT0jcM=; b=pTryduO9jdkHji9eEQSSBzZppS PzgnUec5SxVeRAX8G5ccm7wNngTBXYkVFDIUjDnu3QDxqJy0FaFQWtQ14AW7YxW+ /2IVwheX5CKTKHzXeeK2/vVUmMlqdH8xsdM0xY2uqyr2hXydH6s6SWBr6PFBmUWZ sbKhxwBUdj/ss5ryw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=+l+HGNUxv3rcQgzr1YSq68Vkryju7Zae3vTc2TT0jcM=; b=F4sbTjan BqR0YKlzFxpTxonQ6adC6xz0mwOPGpNLPD/+JDciqONuAUJmGhFnEaRdgohQ1Cvj Hr7RBI0YZVu2gag+IFmOXhjOl7kgI0sthUN8B21eSBFG0af4flQIHkh+DQ7KgQ7a o02Y4HL4IzQYLP80hl0ciWyLAltmYavsZbkeR7VS9n0QfKq1/dVh0koSOoAY1eV/ FZIRUNppLMAICHN3/9u/zg9/2cQIRD5CpHUz9c/Gxv68FyZPFAhp6M0no2rlJK0o Kdo5lmCLGu5mhzrhE/1AYfMuHj2aHL/AojqgqFrvr16YGgOQWE8LN8xZJ6EAHHBY xwteGsZ/FPrSBA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshes mhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id ADEC8306D613 for ; Tue, 7 Apr 2020 20:09:07 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 8 Apr 2020 02:08:57 +0200 Message-Id: <20200408000900.61896-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200210103216.1168439-1-thomas@monjalon.net> References: <20200210103216.1168439-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 0/3] mlx: fix build with -fno-common (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" In GCC 10, -fno-common will be the default. There are 2 ways of solving issues: - add -fcommon - stop allocating variables in .h files In this patchset, the variables are declared extern, because it is cleaner anyway. v2: do not initialize global variables and Cc stable v3: fix rebase Thomas Monjalon (3): common/mlx5: split glue initialization common/mlx5: fix build with -fno-common net/mlx4: fix build with -fno-common drivers/common/mlx5/mlx5_common.c | 82 +++++++++++++++++++------------ drivers/common/mlx5/mlx5_glue.h | 2 +- drivers/net/mlx4/mlx4.c | 4 ++ drivers/net/mlx4/mlx4_glue.h | 2 +- drivers/net/mlx4/mlx4_rxtx.h | 2 +- 5 files changed, 57 insertions(+), 35 deletions(-) -- 2.26.0