[dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error
David Marchand
david.marchand at redhat.com
Mon Apr 20 09:14:24 CEST 2020
On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde
<ajit.khaparde at broadcom.com> 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 the RTE_BUILD_BUG_ON macro instead of redefining this
in your driver?
If the EAL macro is not enough, I suppose we could improve it.
--
David Marchand
More information about the dev
mailing list