mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
bnxt_re: Explicitly cast pointer-to-integer conversions
Reported by: Jenkins
Fixes: acd884dec99a ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
(cherry picked from commit bbe42332e5b2cbe16a885360fad4462d13c7b357)
This commit is contained in:
parent
93265fb21c
commit
54478f4b7e
2 changed files with 2 additions and 2 deletions
|
|
@ -660,7 +660,7 @@ int bnxt_qplib_create_srq(struct bnxt_qplib_res *res,
|
|||
goto exit;
|
||||
/* Configure the request */
|
||||
req.dpi = cpu_to_le32(srq->dpi->dpi);
|
||||
req.srq_handle = cpu_to_le64(srq);
|
||||
req.srq_handle = cpu_to_le64((uintptr_t)srq);
|
||||
srq_size = min_t(u32, srq->hwq.depth, U16_MAX);
|
||||
req.srq_size = cpu_to_le16(srq_size);
|
||||
pg_sz_lvl |= (_get_base_pg_size(&srq->hwq) <<
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ int bnxt_qplib_alloc_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw)
|
|||
mrw->type == CMDQ_ALLOCATE_MRW_MRW_FLAGS_MW_TYPE2A ||
|
||||
mrw->type == CMDQ_ALLOCATE_MRW_MRW_FLAGS_MW_TYPE2B)
|
||||
req.access = CMDQ_ALLOCATE_MRW_ACCESS_CONSUMER_OWNED_KEY;
|
||||
req.mrw_handle = cpu_to_le64(mrw);
|
||||
req.mrw_handle = cpu_to_le64((uintptr_t)mrw);
|
||||
|
||||
bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req),
|
||||
sizeof(resp), 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue