From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 54C9720F for ; Mon, 3 Jul 2017 10:27:50 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id f67so46368125wmh.1 for ; Mon, 03 Jul 2017 01:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rWQU/LGjxjNmvw2CZgtjbBsMeVZ3ekumwNNfrXqXzbs=; b=U78qEDBPAeUoL2CrbrJBi2ewsTxy4pox09a5jJu9l8sq08Jac0PHHhOQVb2DTlhihj QTU7RaySkY1IeasjePiUVbuP8f0PHk4v+mzUtnwRNZ6iT77PsF0k2df6seH9f/KByLJV JtbvTxUTh9bursPRVnCZ6+IUnCM0h9DFT5eZZULYAKmdW80WgUENr3fa04mS9dBzhyN9 wh0F3Q8s9/9w/LGbSdEIra2OdTbTAUR5FVxg4RoMh9vLEYZ6gYfC8qf4uzJ2TaoOPFu4 vs3nSjKndnyWAdvWZm4C/4rtBEKXo8+xS2EqFn+e7U9BhcxT9jT2EEy8BgE64he17Y1e QgHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rWQU/LGjxjNmvw2CZgtjbBsMeVZ3ekumwNNfrXqXzbs=; b=TlEqbiCAFS6+r756k823p+KXHs5nFvCnDgd1MNUlJdZ2jq46I6LLBz79sUvsnihZBP A7ELzcayNwKWLIiZ3d1fw1jGR4WtvTPgTDeT40IgBF4Ts5mjXmJyX469KF8+u9gJZhIc JMzsDRVZrDaIOcCAEDheRJHxFRHw0j3z+02fwWQpKo96TR98jdeRd9FHJIxFwimvTftP Av7aTD7R1wN81x0GyXXmyKLU/Wz1vuNw3eWnaFVeAKijpKf2/vW5pFe0xI9USRCQWJM8 epDlI5gRbYXVPagj3cAbUnj0f9AW6TeqC57OF53B1wUnTkbIRfABsVGADscDImHINWnu 6wew== X-Gm-Message-State: AIVw111sBKCIm7iOchGOZvNho9+DLaAnZM3S15WmVrk4hLm+1AGjg2m7 2GLUNUNjx/7EglkBJsU= X-Received: by 10.28.213.75 with SMTP id m72mr3746440wmg.41.1499070469954; Mon, 03 Jul 2017 01:27:49 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id j190sm6215746wmd.22.2017.07.03.01.27.48 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 03 Jul 2017 01:27:48 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org, Ferruh Yigit Cc: Yongseok Koh Date: Mon, 3 Jul 2017 10:27:39 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: <4bc47a8c50dc528f8061d95cdd0c0934e4e40b38.1498843072.git.adrien.mazarguil@6wind.com> References: <4bc47a8c50dc528f8061d95cdd0c0934e4e40b38.1498843072.git.adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH] net/mlx5: fix compilation issue in debug mode 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: , X-List-Received-Date: Mon, 03 Jul 2017 08:27:50 -0000 Even in C11, using types other than _Bool or signed/unsigned int for bit-fields is an extension. Some GCC versions complain about that when -pedantic checks are enabled. The RTE_STD_C11 macro correctly prevented this issue with C99 but not with C11 as it becomes a no-op. Forcing the extension keyword addresses it. Fixes: 143c03925695 ("net/mlx: update C compliance standard") Signed-off-by: Adrien Mazarguil Tested-by: Yongseok Koh --- Ferruh, squashing this commit with the previous one and discarding its log is fine if you want. Thanks. --- drivers/net/mlx5/mlx5_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index 450a569..4195665 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -240,7 +240,7 @@ struct hash_rxq { }; /* TX queue descriptor. */ -RTE_STD_C11 +__extension__ struct txq { uint16_t elts_head; /* Current index in (*elts)[]. */ uint16_t elts_tail; /* First element awaiting completion. */ -- 2.1.4