From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] mlx4: fix unneeded function error with clang v3.6
Date: Tue, 9 Feb 2016 11:08:25 +0000 [thread overview]
Message-ID: <20160209110824.GA10444@bricha3-MOBL3> (raw)
In-Reply-To: <20160209083926.GS27079@6wind.com>
On Tue, Feb 09, 2016 at 09:39:26AM +0100, Adrien Mazarguil wrote:
> On Mon, Feb 08, 2016 at 10:11:49PM +0000, Bruce Richardson wrote:
> > When compiling with clang 3.6, the mlx4 driver gives the following error
> > message about an unneeded function.
> >
> > CC mlx4.o
> > .../drivers/net/mlx4/mlx4.c:136:20: fatal error: function
> > 'wr_id_t_check' is not needed and will not be emitted
> > [-Wunneeded-internal-declaration]
> > static inline void wr_id_t_check(void)
> > ^
> > 1 error generated.
> >
> > The function is to compile-time check the size of wr_id_t, so use
> > the standard DPDK BUILD_BUG_ON macro to do so in the init function
> > instead.
> >
> > Fixes: 7fae69eeff13 ("mlx4: new poll mode driver")
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
>
> Thanks.
>
> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
>
> --
Applied to dpdk-next-net/rel_16_04
/Bruce
prev parent reply other threads:[~2016-02-09 11:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 22:11 Bruce Richardson
2016-02-09 8:39 ` Adrien Mazarguil
2016-02-09 11:08 ` Bruce Richardson [this message]
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=20160209110824.GA10444@bricha3-MOBL3 \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/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).