[dpdk-dev] [PATCH] eal: fix cpu_feature_table[] compilation with -pedantic

2015-06-29 Thread Thomas Monjalon
2015-06-29 14:10, David Marchand: > On Mon, Jun 29, 2015 at 11:34 AM, Adrien Mazarguil < > adrien.mazarguil at 6wind.com> wrote: > > > Since the commit below includes rte_cpuflags.h in rte_spinlock.h, > > compilation of the mlx4 driver fails when CONFIG_RTE_LIBRTE_MLX4_DEBUG=y. > > > > This mode a

[dpdk-dev] [PATCH] eal: fix cpu_feature_table[] compilation with -pedantic

2015-06-29 Thread David Marchand
On Mon, Jun 29, 2015 at 11:34 AM, Adrien Mazarguil < adrien.mazarguil at 6wind.com> wrote: > Since the commit below includes rte_cpuflags.h in rte_spinlock.h, > compilation of the mlx4 driver fails when CONFIG_RTE_LIBRTE_MLX4_DEBUG=y. > > This mode adds -pedantic to the compiler's command line for

[dpdk-dev] [PATCH] eal: fix cpu_feature_table[] compilation with -pedantic

2015-06-29 Thread Adrien Mazarguil
Since the commit below includes rte_cpuflags.h in rte_spinlock.h, compilation of the mlx4 driver fails when CONFIG_RTE_LIBRTE_MLX4_DEBUG=y. This mode adds -pedantic to the compiler's command line for mlx4, which complains about the static definition of an empty cpu_feature_table[] in common rte_cp