From nobody Mon Jun 03 19:25:10 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 4VtNwQ5VGGz5Js5x; Mon, 03 Jun 2024 19:25:10 +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 4VtNwQ30ftz4Vrc; Mon, 3 Jun 2024 19:25:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717442710; 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=+i8KTVoHBynNpaw4pfiaN3e8AchIO3dYmurLLI3oKgs=; b=gWOPImVVzmbYiqrMtmaMcsuVneOiRO0pjT/w3EDDXhArBC5OiMGggdUIxU3JAiY1dt+Tz+ lm7OQH0/AazSQl1Oap9hJNrLy9Z1hQyOcyQM1tpYNhHxcpJYVx86fvmyXIT5a2o5m5yrc3 evdBxCo/CGceczziJ49ZcaGSB5kSIUrlQos5rD77E4xYdG2IK9MnKhFsc3aWN9wfNYwesr AQrWI6ci0l8AK3VOFKLYsd+/QZnILeWnctA8iZUwRVtjBsjKixl8yKt255i6h4Rtsk2Vug OiWuYL+PbnXXc+lzYyobyPONOJI9py5UA3loZKqD5r7NFmmITa2+c+u6g7bnhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717442710; a=rsa-sha256; cv=none; b=H6mibuW2pKYe5+uWSAs3JPhWDbYRXPlVLR0yRsTASkmuALhZxLFQPDw6rN1IpZET4MeAKC zMNPuyBmhdMX/804wU25lUEHDh3f6K4+UMC8E8nO64HuARNaje1pVEcWcyK+8Dy07Kh1vk wnrBWPpLESacvA/nQ9OUzE4NC9/N/6UUfVdiS7uDFYBhEHzhlpuqwwSRJuObDYn7zGWiKM hLuwl6pWa7rlADto/OMl/6HWPvTL2zsFMZpOABYb1+hOyIsS45470y6Q9cHrmrPJdhCbfW FN+wT9tj0dd2bHEyl1hSqCa/WL2RL028O31q3py+uZUjaYxl70RBz4PrN6sqGA== 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=1717442710; 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=+i8KTVoHBynNpaw4pfiaN3e8AchIO3dYmurLLI3oKgs=; b=aNsLnPCqKMEv3lcv+vlGjf42bbbke+Apqaudq6vUIDYqSBytLKbYoXcvd4xIBGtgXtOFse bU3JRajKlw3MHWbiQLcAasyyK54vatszDBKfi3wmXYBusVmqXDt2IGJFnRy3LL65TaX6pr bGxJjR9tfoLlNvkD/lyyNI5pmiSqVB1ZCQlQKXuQHvbsbBBjEGDCSA/5S3zlsn/PcMTlEc /MQfxjNmOMMvKkMoZ7/YulGUp9rC//ufH6m6ZrsVfcAKQx5YxQ0nX2NPKv31p5sZHhfs4I l5TvPQ4ZEC1cJGE2hQdYB40Vbv+dam0ED/6c18vvlphcRCbv1U9ZGkIFro3xnw== 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 4VtNwQ2d1Zznpr; Mon, 3 Jun 2024 19:25:10 +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 453JPA70068238; Mon, 3 Jun 2024 19:25:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 453JPAAv068235; Mon, 3 Jun 2024 19:25:10 GMT (envelope-from git) Date: Mon, 3 Jun 2024 19:25:10 GMT Message-Id: <202406031925.453JPAAv068235@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 54478f4b7ead - stable/14 - 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 54478f4b7ead1db3ca885f3befa3eca48675c850 Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=54478f4b7ead1db3ca885f3befa3eca48675c850 commit 54478f4b7ead1db3ca885f3befa3eca48675c850 Author: Mark Johnston AuthorDate: 2024-05-28 13:04:21 +0000 Commit: Warner Losh CommitDate: 2024-06-03 19:23:15 +0000 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) --- 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);