From: David Marchand <david.marchand@redhat.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>, dev <dev@dpdk.org>,
Raslan Darawsheh <rasland@mellanox.com>,
Lance Richardson <lance.richardson@broadcom.com>,
Somnath Kotur <somnath.kotur@broadcom.com>
Subject: Re: [dpdk-dev] [PATCH] net/bnxt: fix CLANG compilation error
Date: Mon, 20 Apr 2020 14:23:51 +0200 [thread overview]
Message-ID: <CAJFAV8wEseZ3-22gU7T6U0KWZJG8SnpTnBWW85NEBJTO8HOsDw@mail.gmail.com> (raw)
In-Reply-To: <7e558b9b-c5e6-d276-0ae3-55b966c8cc26@intel.com>
On Mon, Apr 20, 2020 at 2:22 PM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
> On 4/20/2020 8:14 AM, David Marchand wrote:
> > On Mon, Apr 20, 2020 at 8:28 AM Ajit Khaparde
> > <ajit.khaparde@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.
> >
>
> Will squash it on next-net to fix the build error. +1 to using
> 'RTE_BUILD_BUG_ON' comment if it possible but it can be done as incremental patch.
Ack.
--
David Marchand
next prev parent reply other threads:[~2020-04-20 12:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 6:26 Ajit Khaparde
2020-04-20 7:14 ` David Marchand
2020-04-20 12:22 ` Ferruh Yigit
2020-04-20 12:23 ` David Marchand [this message]
2020-04-20 12:49 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJFAV8wEseZ3-22gU7T6U0KWZJG8SnpTnBWW85NEBJTO8HOsDw@mail.gmail.com \
--to=david.marchand@redhat.com \
--cc=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=lance.richardson@broadcom.com \
--cc=rasland@mellanox.com \
--cc=somnath.kotur@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).