svn commit: r322810 - in head: share/man/man4 sys/conf sys/dev/mlx5/mlx5_ib sys/modules sys/modules/mlx5ib

Ed Maste emaste at freebsd.org
Thu Aug 24 00:04:55 UTC 2017


On 23 August 2017 at 08:09, Hans Petter Selasky <hselasky at freebsd.org> wrote:
> Author: hselasky
> Date: Wed Aug 23 12:09:37 2017
> New Revision: 322810
> URL: https://svnweb.freebsd.org/changeset/base/322810
>
> Log:
>   Add new mlx5ib(4) driver to the kernel source tree which supports
>   Remote DMA over Converged Ethernet, RoCE, for the ConnectX-4 series of
>   PCI express network cards.

i386 lint kernel is now failing with:

/scratch/tmp/emaste/freebsd/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c:58:21:
error: incompatible pointer types passing 'uintptr_t *' (aka 'unsigned
int *') to parameter of type 'const unsigned long *'
[-Werror,-Wincompatible-pointer-types]
        m = find_first_bit(&tmp, 8 * sizeof(tmp));
                           ^~~~
/scratch/tmp/emaste/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h:111:37:
note: passing argument to parameter 'addr' here
find_first_bit(const unsigned long *addr, unsigned long size)
                                    ^
/scratch/tmp/emaste/freebsd/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c:70:23:
error: incompatible pointer types passing 'uintptr_t *' (aka 'unsigned
int *') to parameter of type 'const unsigned long *'
[-Werror,-Wincompatible-pointer-types]
                                          find_first_bit(&tmp, 8 *
sizeof(tmp)));
                                                         ^~~~
/scratch/tmp/emaste/freebsd/sys/compat/linuxkpi/common/include/linux/kernel.h:366:17:
note: expanded from macro 'min_t'
        type __min2 = (y);                      \
                       ^
/scratch/tmp/emaste/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h:111:37:
note: passing argument to parameter 'addr' here
find_first_bit(const unsigned long *addr, unsigned long size)
                                    ^
/scratch/tmp/emaste/freebsd/sys/dev/mlx5/mlx5_ib/mlx5_ib_mem.c:78:25:
error: incompatible pointer types passing 'uintptr_t *' (aka 'unsigned
int *') to parameter of type 'const unsigned long *'
[-Werror,-Wincompatible-pointer-types]
                                        m = find_first_bit(&tmp, 8 *
sizeof(tmp));
                                                           ^~~~
/scratch/tmp/emaste/freebsd/sys/compat/linuxkpi/common/include/linux/bitops.h:111:37:
note: passing argument to parameter 'addr' here
find_first_bit(const unsigned long *addr, unsigned long size)
                                    ^
3 errors generated.


More information about the svn-src-head mailing list