From: David S. Miller Date: Tue, 25 Aug 2015 22:54:25 +0000 (-0700) Subject: rds: Fix improper gfp_t usage. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b01d04aa511b78c795dd258bf8689a421a6b4d0c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git rds: Fix improper gfp_t usage. >> net/rds/ib_recv.c:382:28: sparse: incorrect type in initializer (different base types) net/rds/ib_recv.c:382:28: expected int [signed] can_wait net/rds/ib_recv.c:382:28: got restricted gfp_t net/rds/ib_recv.c:828:23: sparse: cast to restricted __le64 Reported-by: kbuild test robot Signed-off-by: David S. Miller --- diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 3afdcbdd06b4..ed9b41e3b277 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -379,7 +379,7 @@ void rds_ib_recv_refill(struct rds_connection *conn, int prefill, gfp_t gfp) struct ib_recv_wr *failed_wr; unsigned int posted = 0; int ret = 0; - int can_wait = gfp & __GFP_WAIT; + bool can_wait = !!(gfp & __GFP_WAIT); u32 pos; /* the goal here is to just make sure that someone, somewhere