svn commit: r291699 - in head/sys: modules/mlxen ofed/drivers/net/mlx4

Hans Petter Selasky hps at selasky.org
Fri Dec 4 18:01:33 UTC 2015


On 12/04/15 18:57, Konstantin Belousov wrote:
> On Thu, Dec 03, 2015 at 02:56:17PM +0000, Hans Petter Selasky wrote:
>> Author: hselasky
>> Date: Thu Dec  3 14:56:17 2015
>> New Revision: 291699
>> URL: https://svnweb.freebsd.org/changeset/base/291699
>>
>> Log:
>>    Convert the mlxen driver to use the BUSDMA(9) APIs instead of
>>    vtophys() when loading mbufs for transmission and reception. While at
>>    it all pointer arithmetic and cast qualifier issues were fixed, mostly
>>    related to transmission and reception.
>>
>>    MFC after:	1 week
>>    Sponsored by:	Mellanox Technologies
>>    Differential Revision:	https://reviews.freebsd.org/D4284
>>
>> Modified:
>>    head/sys/modules/mlxen/Makefile
>>    head/sys/ofed/drivers/net/mlx4/en_netdev.c
>>    head/sys/ofed/drivers/net/mlx4/en_rx.c
>>    head/sys/ofed/drivers/net/mlx4/en_tx.c
>>    head/sys/ofed/drivers/net/mlx4/mlx4_en.h
>>
>> Modified: head/sys/modules/mlxen/Makefile
>> ==============================================================================
>> --- head/sys/modules/mlxen/Makefile	Thu Dec  3 14:38:55 2015	(r291698)
>> +++ head/sys/modules/mlxen/Makefile	Thu Dec  3 14:56:17 2015	(r291699)
>> @@ -11,5 +11,3 @@ CFLAGS+= -I${.CURDIR}/../../ofed/include
>>   CFLAGS+= -I${.CURDIR}/../../compat/linuxkpi/common/include
>>
>>   .include <bsd.kmod.mk>
>> -
>> -CFLAGS+= -Wno-cast-qual -Wno-pointer-arith
>
> I did not checked to definitely blame this commit, but I do get the
> following error from the i386 LINT build:
>
> In file included from /scratch/tmp/kib/src/sys/modules/mlxen/../../ofed/drivers/
> net/mlx4/en_cq.c:34:
> In file included from /scratch/tmp/kib/src/sys/modules/mlxen/../../ofed/include/
> linux/mlx4/cq.h:39:
> /scratch/tmp/kib/src/sys/modules/mlxen/../../ofed/include/linux/mlx4/doorbell.h:
> 80:42: error: arithmetic on a pointer to void is a GNU extension [-Werror,-Wpoin
> ter-arith]
>          __raw_writel((__force u32) val[1], dest + 4);
>                                             ~~~~ ^

I'll check it out.

--HPS



More information about the svn-src-head mailing list