RDMA/bnxt_re: Fix endianness warning
Subsystems (2)
PATCH 1/1 RDMA/bnxt_re: Fix endianness warning
Fix the following sparce warning:
CHECK ../drivers/infiniband/hw/bnxt_re/qplib_fp.cdrivers/infiniband/hw/bnxt_re/qplib_fp.c:1260:26: sparse: warning:
incorrect type in assignment (different base types)
--- 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
@@ -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
Quoted 5 lines · Kamal Heib
Fix the following sparce warning:
CHECK../drivers/infiniband/hw/bnxt_re/qplib_fp.cdrivers/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")Reported-by kernel test robot <[email protected]>Signed-off-by Kamal Heib <[email protected]>--- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sparce -> sparse
Thanks,
Quoted 15 lines · Leon Romanovsky
Quoted 5 lines · Kamal Heib
Fix the following sparce warning:
CHECK../drivers/infiniband/hw/bnxt_re/qplib_fp.cdrivers/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")Reported-by kernel test robot <[email protected]>Signed-off-by Kamal Heib <[email protected]>--- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 4 lines
sparce -> sparse
Thanks,
Reviewed-by Leon Romanovsky <[email protected]>
Quoted 5 lines · Kamal Heib
Fix the following sparce warning:
CHECK../drivers/infiniband/hw/bnxt_re/qplib_fp.cdrivers/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")Reported-by kernel test robot <[email protected]>Signed-off-by Kamal Heib <[email protected]>Reviewed-by Leon Romanovsky <[email protected]>Acked-by Selvin Xavier <[email protected]>--- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next, thanks
Jason