On 23 August 2017 at 08:09, Hans Petter Selasky <hsela...@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.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to