Message ID | 20200408000900.61896-1-thomas@monjalon.net (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 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 <dev@dpdk.org>; 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: <xms:JBaNXm7ztPyiF4Qg_5w8eHZ7BsU3KKIxZgSaH4NGKJOGrcjOwCg1Rw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshes mhhonhhjrghlohhnrdhnvght X-ME-Proxy: <xmx:JBaNXqWHwcKXQN9SnENmjHBCot6F3yntKAXis4d9rh7n3xi50VWykQ> <xmx:JBaNXs99y0BN4-GMUBU30AbcyFHbeQzK3lvhTIfpxLbtSb0ZZq3tZg> <xmx:JBaNXqqscGMXwQSBNTA1hfP6a4mzx3BuXjdtCvFhjYpzYZGU4C7WUQ> <xmx:JBaNXgJwjZOAXGhOSMZHHHHNIngSdyguxPktJ9HA8aZgIGkYvvJp9w> 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 <dev@dpdk.org>; Tue, 7 Apr 2020 20:09:07 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
mlx: fix build with -fno-common (gcc 10)
|
|
Message
Thomas Monjalon
April 8, 2020, 12:08 a.m. UTC
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(-)
Comments
Hi, > -----Original Message----- > From: dev <dev-bounces@dpdk.org> On Behalf Of Thomas Monjalon > Sent: Wednesday, April 8, 2020 3:09 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/3] mlx: fix build with -fno-common (gcc 10) > > 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 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh