Re: [ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-22 Thread Ethan Jackson
Cool, I've folded the change in, thanks! Ethan On Fri, May 22, 2015 at 10:08 AM, Daniele Di Proietto wrote: > I was running an old version, getting it from the upstream repo helped, > thanks! > > I manage to compile everything without warnings if I apply the following > incremental > > ---8<---

Re: [ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-22 Thread Daniele Di Proietto
I was running an old version, getting it from the upstream repo helped, thanks! I manage to compile everything without warnings if I apply the following incremental ---8<--- diff --git a/include/sparse/automake.mk b/include/sparse/automake.mk index c80c4c2..0456ee6 100644 --- a/include/sparse/au

Re: [ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-19 Thread Ethan Jackson
I think you're running into the issue that sparse doesn't understand the "gnu_inline" macro which is used extensively in the DPDK header files. If you run tip of master sparse (git://git.kernel.org/pub/scm/devel/sparse/sparse.git) it should work for you. In the past we've typically required relat

Re: [ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-18 Thread Daniele Di Proietto
On my system (I'm using GCC 4.9 and sparse 0.4.5) I need lots of other headers like emmintrin.h to compile without warnings. The complete list is: adxintrin.h,ammintrin.h,avx2intrin.h,avx512fintrin.h, avxintrin.h,bmi2intrin.h,bmiintrin.h,f16cintrin.h, fma4intrin.h,fmaintrin.h,fxsrintrin.h,ia32int

[ovs-dev] [PATCH 1/2] sparse: Fix sparse when compiling DPDK.

2015-05-18 Thread Ethan Jackson
Sparse doesn't like several of the DPDK header files. This patch works around it so we can get analysis when compiling DPDK. Signed-off-by: Ethan Jackson --- include/sparse/automake.mk | 4 include/sparse/emmintrin.h | 21 + include/sparse/rte_atomic.h | 25 +