Compile fixes for LINT on 32-bit platforms.

MFC after:		2 weeks
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-08-24 08:09:42 +00:00
parent 00120249a7
commit 8ac4c959ab
2 changed files with 4 additions and 2 deletions

View File

@ -856,7 +856,7 @@ static struct ib_ucontext *mlx5_ib_alloc_ucontext(struct ib_device *ibdev,
else if (reqlen == sizeof(struct mlx5_ib_alloc_ucontext_req_v2))
ver = 2;
else {
mlx5_ib_err(dev, "request malformed, reqlen: %ld\n", reqlen);
mlx5_ib_err(dev, "request malformed, reqlen: %ld\n", (long)reqlen);
return ERR_PTR(-EINVAL);
}

View File

@ -29,6 +29,8 @@
#include <rdma/ib_umem.h>
#include "mlx5_ib.h"
CTASSERT(sizeof(uintptr_t) == sizeof(unsigned long));
/* @umem: umem object to scan
* @addr: ib virtual address requested by the user
* @count: number of PAGE_SIZE pages covered by umem
@ -40,7 +42,7 @@
void mlx5_ib_cont_pages(struct ib_umem *umem, u64 addr, int *count, int *shift,
int *ncont, int *order)
{
uintptr_t tmp;
unsigned long tmp;
unsigned long m;
int i, k;
u64 base = 0;