Skip to content

Commit 48bcfba

Browse files
committed
RDMA/bnxt_re: Fix endianness warning for req.pkey
Bugzilla: https://bugzilla.redhat.com/2142686 commit 0a0575a Author: Kamal Heib <kamalheib1@gmail.com> Date: Sun Dec 5 22:45:37 2021 +0200 RDMA/bnxt_re: Fix endianness warning for req.pkey Fix the following sparse warning: drivers/infiniband/hw/bnxt_re/qplib_fp.c:1260:26: sparse: warning: incorrect type in assignment (different base types) Fixes: 0e93853 ("RDMA/bnxt_re: Remove dynamic pkey table") Link: https://lore.kernel.org/r/20211205204537.14184-1-kamalheib1@gmail.com Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Kamal Heib <kheib@redhat.com>
1 parent ff784bd commit 48bcfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/bnxt_re/qplib_fp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ int bnxt_qplib_modify_qp(struct bnxt_qplib_res *res, struct bnxt_qplib_qp *qp)
12571257
req.access = qp->access;
12581258

12591259
if (bmask & CMDQ_MODIFY_QP_MODIFY_MASK_PKEY)
1260-
req.pkey = IB_DEFAULT_PKEY_FULL;
1260+
req.pkey = cpu_to_le16(IB_DEFAULT_PKEY_FULL);
12611261

12621262
if (bmask & CMDQ_MODIFY_QP_MODIFY_MASK_QKEY)
12631263
req.qkey = cpu_to_le32(qp->qkey);

0 commit comments

Comments
 (0)