Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyverbs: Fix build failure #1437

Merged
merged 1 commit into from Mar 10, 2024
Merged

pyverbs: Fix build failure #1437

merged 1 commit into from Mar 10, 2024

Conversation

Kamalheib
Copy link
Contributor

Fix the following error:

rdma-core-50.0/pyverbs/dmabuf_alloc.c: In function ‘drm_open’: rdma-core-50.0/pyverbs/dmabuf_alloc.c:122:28: error: assignment to ‘int (*)(struct drm *, uint64_t, uint32_t , int)’ {aka ‘int ()(struct drm *, long long unsigned int, unsigned int , int)’} from incompatible pointer type ‘int ()(struct drm *, size_t, uint32_t , int)’ {aka ‘int ()(struct drm *, unsigned int, unsigned int *, int)’} [-Wincompatible-pointer-types]
122 | drm->alloc = amdgpu_alloc;

Fix the following error:

rdma-core-50.0/pyverbs/dmabuf_alloc.c: In function ‘drm_open’:
rdma-core-50.0/pyverbs/dmabuf_alloc.c:122:28: error: assignment to ‘int (*)(struct drm *, uint64_t,  uint32_t *, int)’ {aka ‘int (*)(struct drm *, long long unsigned int,  unsigned int *, int)’} from incompatible pointer type ‘int (*)(struct drm *, size_t,  uint32_t *, int)’ {aka ‘int (*)(struct drm *, unsigned int,  unsigned int *, int)’} [-Wincompatible-pointer-types]
  122 |                 drm->alloc = amdgpu_alloc;

Signed-off-by: Kamal Heib <kheib@redhat.com>
@rleon rleon merged commit 710aa55 into linux-rdma:master Mar 10, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants