From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id D3E345AA0 for ; Tue, 3 Mar 2015 16:24:37 +0100 (CET) Received: by widex7 with SMTP id ex7so23644469wid.4 for ; Tue, 03 Mar 2015 07:24:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=tiC47I/qOMTP7ERq2S+cSGeC8iZqYGmWUiaPENCXkIY=; b=Pky3KaKn8YtrFxPuiFjC1z3SG2Tgqa/JxKax2Vdft0Z373uZKcZsfdnh8+Wfe8GoIj vGtn+nTjFGbDwoEwVVLD8jjVVcSlzu8lAza0zPb+xATrXxnQHi+fvrIu1GDtgUmEgFxZ TaXE4P1T1Hm1WuWpOaDf7ytQURXVbYIjDQjUC8nwBuWqMwTuqNCk497XFarCW0wPmHvF RA0+Q5RiBs7kLr1M0FWrZwxh8wARaP2MurnxNt7cHHYkcwoKyBqT9xPWfDmg62/gnIkl qG6xomRGCmm1yoqk6EHf29Cptp8FC7eF9uZYlJwFUcHxJ3U7/lbr+Y8XbRwpV0lAgVKX XelQ== X-Gm-Message-State: ALoCoQluLVACQgI4ajBpBKQ3Sc3eTKmmCgfW3nA2ZWDOLvmnVZxAQc3p0Jhbjni5XnG3qhu/I/bS X-Received: by 10.181.13.148 with SMTP id ey20mr3922666wid.18.1425396277688; Tue, 03 Mar 2015 07:24:37 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id gf11sm2889236wic.18.2015.03.03.07.24.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 07:24:37 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 3 Mar 2015 16:23:48 +0100 Message-Id: <1425396230-13379-6-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1425396230-13379-1-git-send-email-thomas.monjalon@6wind.com> References: <1425396230-13379-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 5/7] mlx4: fix build with mempool debug enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 15:24:38 -0000 The mempool header forces error on -Wcast-qual and makes verbs.h failing. Let's include verbs before as a system header. Fixes: 7fae69eeff13 ("mlx4: new poll mode driver") Signed-off-by: Thomas Monjalon --- lib/librte_pmd_mlx4/mlx4.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/librte_pmd_mlx4/mlx4.c b/lib/librte_pmd_mlx4/mlx4.c index 492cbbf..b5774c4 100644 --- a/lib/librte_pmd_mlx4/mlx4.c +++ b/lib/librte_pmd_mlx4/mlx4.c @@ -60,6 +60,16 @@ #include #include +/* Verbs header. */ +/* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ +#ifdef PEDANTIC +#pragma GCC diagnostic ignored "-pedantic" +#endif +#include +#ifdef PEDANTIC +#pragma GCC diagnostic error "-pedantic" +#endif + /* DPDK headers don't like -pedantic. */ #ifdef PEDANTIC #pragma GCC diagnostic ignored "-pedantic" @@ -81,18 +91,6 @@ #pragma GCC diagnostic error "-pedantic" #endif -/* Verbs header. */ -/* ISO C doesn't support unnamed structs/unions, disabling -pedantic. */ -#ifdef PEDANTIC -#pragma GCC diagnostic ignored "-pedantic" -#endif - -#include - -#ifdef PEDANTIC -#pragma GCC diagnostic error "-pedantic" -#endif - /* Generated configuration header. */ #include "mlx4_autoconf.h" -- 2.2.2