Skip to content

Commit

Permalink
pyverbs: Fix compilation error in Fedora 39
Browse files Browse the repository at this point in the history
Error compiling Cython file:
------------------------------------------------------------
...
        """
        super().__init__()
        self.pd = pd
        self.init_attr.pd = <v.ibv_pd*>pd.pd
        if pd_context:
            self.init_attr.alloc = pd_alloc
                                   ^
------------------------------------------------------------

/home/leonro/src/rdma-core/pyverbs/pd.pyx:230:35: Cannot assign type 'void *(ibv_pd *, void *, size_t,
size_t, uint64_t) except? NULL' to 'void *(*)(ibv_pd *, void *, size_t, size_t, uint64_t) noexcept'.
Exception values are incompatible. Suggest adding 'noexcept' to type 'void *(ibv_pd *, void *, size_t,
size_t, uint64_t) except? NULL'.

Error compiling Cython file:
------------------------------------------------------------
...
        super().__init__()
        self.pd = pd
        self.init_attr.pd = <v.ibv_pd*>pd.pd
        if pd_context:
            self.init_attr.alloc = pd_alloc
            self.init_attr.free = pd_free
                                  ^
------------------------------------------------------------

Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Edward Srouji <[email protected]>
  • Loading branch information
rleon authored and EdwardSro committed Jan 21, 2024
1 parent 88d13e3 commit 0fa21ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyverbs/pd.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019, Mellanox Technologies. All rights reserved.

#cython: legacy_implicit_noexcept=True

from libc.stdint cimport uintptr_t, uint32_t
from libc.stdlib cimport malloc
import weakref
Expand Down

0 comments on commit 0fa21ec

Please sign in to comment.