Re: [dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error

2020-04-20 Thread Ferruh Yigit
On 4/20/2020 1:23 PM, David Marchand wrote: > On Mon, Apr 20, 2020 at 2:22 PM Ferruh Yigit wrote: >> On 4/20/2020 8:14 AM, David Marchand wrote: >>> On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde >>> wrote: Fix a compilation error seen with CLANG. The current code causes a typedef r

Re: [dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error

2020-04-20 Thread David Marchand
On Mon, Apr 20, 2020 at 2:22 PM Ferruh Yigit wrote: > On 4/20/2020 8:14 AM, David Marchand wrote: > > On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde > > wrote: > >> > >> Fix a compilation error seen with CLANG. > >> The current code causes a typedef redefinition error because > >> 'p__LINE__' is a

Re: [dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error

2020-04-20 Thread Ferruh Yigit
On 4/20/2020 8:14 AM, David Marchand wrote: > On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde > wrote: >> >> Fix a compilation error seen with CLANG. >> The current code causes a typedef redefinition error because >> 'p__LINE__' is a C11 feature. Fixing it by defining it to something >> which is not

Re: [dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error

2020-04-20 Thread David Marchand
On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde wrote: > > Fix a compilation error seen with CLANG. > The current code causes a typedef redefinition error because > 'p__LINE__' is a C11 feature. Fixing it by defining it to something > which is not already defined in the language. Can't you reuse th

[dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error

2020-04-19 Thread Ajit Khaparde
Fix a compilation error seen with CLANG. The current code causes a typedef redefinition error because 'p__LINE__' is a C11 feature. Fixing it by defining it to something which is not already defined in the language. Fixes: 3ca9012a81f9 ("net/bnxt: add initial TruFlow core session open") Reported-