public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filip Balluch <fballuch@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rdma-core] rawhide: Add patch to fix pyverbs CompCntr uint64_t type mismatch on i686
Date: Thu, 01 Oct 2026 09:08:24 GMT [thread overview]
Message-ID: <179084570415.1.13436628103612257462.rpms-rdma-core-cb1c8ec987bb@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rdma-core
Branch : rawhide
Commit : cb1c8ec987bb67c420f5f20397a8dd2e8c3bca5f
Author : Filip Balluch <fballuch@redhat.com>
Date : 2026-09-22T11:23:56+02:00
Stats : +47/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rdma-core/c/cb1c8ec987bb67c420f5f20397a8dd2e8c3bca5f?branch=rawhide
Log:
Add patch to fix pyverbs CompCntr uint64_t type mismatch on i686
Signed-off-by: Filip Balluch <fballuch@redhat.com>
---
diff --git a/fix-comp-cntr-uint64.patch b/fix-comp-cntr-uint64.patch
new file mode 100644
index 0000000..22eb197
--- /dev/null
+++ b/fix-comp-cntr-uint64.patch
@@ -0,0 +1,45 @@
+diff --git a/pyverbs/comp_cntr.pyx b/pyverbs/comp_cntr.pyx
+index 12e812cb9..79592f27e 100644
+--- a/pyverbs/comp_cntr.pyx
++++ b/pyverbs/comp_cntr.pyx
+@@ -3,6 +3,7 @@
+
+ #cython: language_level=3
+
++from libc.stdint cimport uint64_t
+ from pyverbs.base import PyverbsRDMAErrno, PyverbsRDMAError
+ from pyverbs.device cimport Context
+ cimport pyverbs.libibverbs as v
+@@ -81,7 +82,7 @@ cdef class CompCntr(PyverbsCM):
+
+ def read(self):
+ """Read and return the current completion count."""
+- cdef unsigned long value = 0
++ cdef uint64_t value = 0
+ rc = v.ibv_read_comp_cntr(self.comp_cntr, &value)
+ if rc:
+ raise PyverbsRDMAError('Failed to read comp_cntr', rc)
+@@ -89,7 +90,7 @@ cdef class CompCntr(PyverbsCM):
+
+ def read_err(self):
+ """Read and return the current error count."""
+- cdef unsigned long value = 0
++ cdef uint64_t value = 0
+ rc = v.ibv_read_err_comp_cntr(self.comp_cntr, &value)
+ if rc:
+ raise PyverbsRDMAError('Failed to read_err comp_cntr', rc)
+diff --git a/pyverbs/libibverbs.pxd b/pyverbs/libibverbs.pxd
+index 82bfa869a..2afa76c40 100644
+--- a/pyverbs/libibverbs.pxd
++++ b/pyverbs/libibverbs.pxd
+@@ -785,8 +785,8 @@ cdef extern from 'infiniband/verbs.h':
+ int ibv_set_err_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long value)
+ int ibv_inc_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long amount)
+ int ibv_inc_err_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long amount)
+- int ibv_read_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long *value)
+- int ibv_read_err_comp_cntr(ibv_comp_cntr *comp_cntr, unsigned long *value)
++ int ibv_read_comp_cntr(ibv_comp_cntr *comp_cntr, uint64_t *value)
++ int ibv_read_err_comp_cntr(ibv_comp_cntr *comp_cntr, uint64_t *value)
+ ibv_ah *ibv_create_ah(ibv_pd *pd, ibv_ah_attr *attr)
+ int ibv_init_ah_from_wc(ibv_context *context, uint8_t port_num,
+ ibv_wc *wc, ibv_grh *grh, ibv_ah_attr *ah_attr)
diff --git a/rdma-core.spec b/rdma-core.spec
index cf485ee..57ae1a8 100644
--- a/rdma-core.spec
+++ b/rdma-core.spec
@@ -11,6 +11,7 @@ License: GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
Url: https://github.com/linux-rdma/rdma-core
Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0001: 0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch
+Patch0002: fix-comp-cntr-uint64.patch
Patch9998: 9998-kernel-boot-Do-not-perform-device-rename-on-OPA-devi.patch
Patch9999: 9999-udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch
# Do not build static libs by default.
@@ -305,6 +306,7 @@ easy, object-oriented access to IB verbs.
%prep
%setup -q
%patch 0001 -p1
+%patch 0002 -p1
%if 0%{?fedora}
%patch 9998 -p1
%endif
reply other threads:[~2026-10-01 9:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179084570415.1.13436628103612257462.rpms-rdma-core-cb1c8ec987bb@fedoraproject.org \
--to=fballuch@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox