[dpdk-dev] [PATCH] mlx4: fix unneeded function error with clang v3.6

Bruce Richardson bruce.richardson at intel.com
Tue Feb 9 12:08:25 CET 2016


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 at intel.com>
> 
> Thanks.
> 
> Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
> 
> -- 
Applied to dpdk-next-net/rel_16_04

/Bruce



More information about the dev mailing list