From nobody Tue May 28 13:13:06 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VpXxt40Cyz5MFvv; Tue, 28 May 2024 13:13:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VpXxt2vK9z4pCX; Tue, 28 May 2024 13:13:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716901986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OvuMfswj2aGlFowAwveJR0moUQZ8bL4YOvtXdTKwPO4=; b=MkWekDpgt5xu8dFC45OPwrv0QIRF2zymg8qYz/rBKgxvJ8m5lARf1XpyJHfiN3ZvOvRlXf LhmXm+2eGoTxNAKIVjNBiBZDwIg9rgBvDP9PFkzj3i8F86MkfcHaXPsVbRbB+AZCOAS13w ZJq+Za308x15gioPF0DPzqBCQ2HIkPquwIHMJk0f72urok2oPn8CHNtrMcDGFo5MmyDtA3 tUPCY33d1oVX3v1PkpTtG8mJ52reUHFfVRRPDaXi/5GYJapv3HGxeCkWflXrljBkDnaIUx s+kEUJhVxoPQ3aLezLPr+eBAC+Ug3jTXgw2NuWjJGwk0LDgtlJIkm2p5ElH9LA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716901986; a=rsa-sha256; cv=none; b=dThDmFqRsdmjmhPY0Vb+N+VgfcjMj8PEEhCoNQtDtvcqcH3EYjEm20LQra3Zk2NO4DROp0 u+6+60I3MR3jn/aBN/9W4I4P6p7yq1mGHdX4qjmFtXXm1Hpt6aA1ka4YDXd7a1Va7SO6cc yTHbEfzBHGD/BYgRrBZsiGECMlrgAjn2jXn00puxDeK6jHL4Y/lMXWsz0Dg06YRY+djqmu r7bjxVKIbxQzMT+1RQloRYwujeQ6867upUtN8NOF/n0sLJEWjDU+hGVFH4Q9sxc2+0jV8K YApa3fPxiOsCgo1IWR8FUZRUtPB79Cjpe5Sy2T4dRdkkU8jFcKHiG32nXE95rA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716901986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OvuMfswj2aGlFowAwveJR0moUQZ8bL4YOvtXdTKwPO4=; b=x9YaDs1xwDVllT1yC3O9PwB0QOS/fvjcqTaFV9/WY3B2Msoi/BlBCDPAkhjpJRMjxtIVn3 dfEAOvnLdWMg+Nj5IBXmnZRlxwZ3EBDg0SGk7huaDf6a4TlAkdPYvXq0s2/A6FuDYFzvFT dLoyCwtMoCOIKn7vU0E7Fi/2HC8M1W+kywPqISlre4pxXr5pcmF1ViHA+tf9+01lLOsqWz gdhXVFWcRfFiQ82VnnA921JjXtuqZZ3HEA7GJSfRftKX0lHcF8bG6bSR2N7SKvkFP2QNCu bVvPH5LLhiN/JnOvYeJfDqRQZ2PrET8leEhO93FDZ7+wtThHu74wJgmqrT4+TA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VpXxt2TnVzDqH; Tue, 28 May 2024 13:13:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44SDD6j8021834; Tue, 28 May 2024 13:13:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44SDD68Y021831; Tue, 28 May 2024 13:13:06 GMT (envelope-from git) Date: Tue, 28 May 2024 13:13:06 GMT Message-Id: <202405281313.44SDD68Y021831@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: bbe42332e5b2 - main - bnxt_re: Explicitly cast pointer-to-integer conversions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bbe42332e5b2cbe16a885360fad4462d13c7b357 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=bbe42332e5b2cbe16a885360fad4462d13c7b357 commit bbe42332e5b2cbe16a885360fad4462d13c7b357 Author: Mark Johnston AuthorDate: 2024-05-28 13:04:21 +0000 Commit: Mark Johnston CommitDate: 2024-05-28 13:12:42 +0000 bnxt_re: Explicitly cast pointer-to-integer conversions Reported by: Jenkins Fixes: acd884dec99a ("RDMA/bnxt_re: Add bnxt_re RoCE driver") --- sys/dev/bnxt/bnxt_re/qplib_fp.c | 2 +- sys/dev/bnxt/bnxt_re/qplib_sp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/bnxt/bnxt_re/qplib_fp.c b/sys/dev/bnxt/bnxt_re/qplib_fp.c index 438f7ddd468e..3f1b02406f7f 100644 --- a/sys/dev/bnxt/bnxt_re/qplib_fp.c +++ b/sys/dev/bnxt/bnxt_re/qplib_fp.c @@ -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) << diff --git a/sys/dev/bnxt/bnxt_re/qplib_sp.c b/sys/dev/bnxt/bnxt_re/qplib_sp.c index 8faa3cd9390c..c414718a816f 100644 --- a/sys/dev/bnxt/bnxt_re/qplib_sp.c +++ b/sys/dev/bnxt/bnxt_re/qplib_sp.c @@ -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);