Skip to contentSkip to conversation

RDMA/bnxt_re: Fix endianness warning

PATCH Applied Kamal Heib 4 participants 4 messages Dec 5, 2021 – Dec 6, 2021

Subsystems (2)
lore
Share & tools
lore

Kamal Heib

author
#0 lore raw

PATCH 1/1 RDMA/bnxt_re: Fix endianness warning

Fix the following sparce warning:
CHECK ../drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c:1260:26: sparse: warning:
incorrect type in assignment (different base types)

Fixes 0e938533d96d ("RDMA/bnxt_re: Remove dynamic pkey table")
---
 drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bnxt_re/qplib_fp.c +1 -1
index f6472cca9ec7..96e581ced50e 100644
@@ -1257,7 +1257,7 @@ int bnxt_qplib_modify_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
 		req.access = qp->access;
 
 	if (bmask & CMDQ_MODIFY_QP_MODIFY_MASK_PKEY)
-		req.pkey = IB_DEFAULT_PKEY_FULL;
+		req.pkey = cpu_to_le16(IB_DEFAULT_PKEY_FULL);
 
 	if (bmask & CMDQ_MODIFY_QP_MODIFY_MASK_QKEY)
 		req.qkey = cpu_to_le32(qp->qkey);
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Kamal Heib

Fix the following sparce warning:
CHECK ../drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c:1260:26: sparse: warning:
incorrect type in assignment (different base types)

Quoted 7 lines
Fixes 0e938533d96d ("RDMA/bnxt_re: Remove dynamic pkey table")
---
 drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

sparce -> sparse

Thanks,

maintainer Acked-by
#2 lore raw
Quoted 15 lines · Leon Romanovsky
Quoted 5 lines · Kamal Heib

Fix the following sparce warning:
CHECK ../drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c:1260:26: sparse: warning:
incorrect type in assignment (different base types)

Quoted 7 lines
Fixes 0e938533d96d ("RDMA/bnxt_re: Remove dynamic pkey table")
---
 drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 4 lines

sparce -> sparse

Thanks,

maintainer Applied
#3 lore raw
In reply to Kamal Heib
Quoted 5 lines · Kamal Heib

Fix the following sparce warning:
CHECK ../drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c:1260:26: sparse: warning:
incorrect type in assignment (different base types)

Quoted 8 lines
Fixes 0e938533d96d ("RDMA/bnxt_re: Remove dynamic pkey table")
---
 drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next, thanks

Jason