From: Leon Romanovsky <leonro@xxxxxxxxxx> Sacrifice one page in order to silence compilation failure on i386 architecture. drivers/infiniband/core/umem.c:205 __ib_umem_get() warn: impossible condition '(npages > (~0)) => (0-u32max > u32max)' Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> --- drivers/infiniband/core/umem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c index 313fabb9f4a2..95be8cc75d2e 100644 --- a/drivers/infiniband/core/umem.c +++ b/drivers/infiniband/core/umem.c @@ -202,7 +202,7 @@ static struct ib_umem *__ib_umem_get(struct ib_device *device, } npages = ib_umem_num_pages(umem); - if (npages == 0 || npages > UINT_MAX) { + if (npages == 0 || npages >= UINT_MAX) { ret = -EINVAL; goto out; } -- 2.29.2