mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
bnxt_re: Explicitly cast pointer-to-integer conversions
Reported by: Jenkins
Fixes: acd884dec9
("RDMA/bnxt_re: Add bnxt_re RoCE driver")
This commit is contained in:
parent
8164d511d6
commit
bbe42332e5
|
@ -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