Compile fixes for LINT on 32-bit platforms.
MFC after: 2 weeks Sponsored by: Mellanox Technologies
This commit is contained in:
parent
00120249a7
commit
8ac4c959ab
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user