Skip to content

Commit

Permalink
pyverbs: Fix build failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Kamalheib committed Mar 9, 2024
1 parent 3ff0150 commit 4d0e1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyverbs/dmabuf_alloc.c
Expand Up @@ -43,7 +43,7 @@ static int i915_alloc(struct drm *drm, uint64_t size, uint32_t *handle, int gtt)
return 0;
}

static int amdgpu_alloc(struct drm *drm, size_t size, uint32_t *handle, int gtt)
static int amdgpu_alloc(struct drm *drm, uint64_t size, uint32_t *handle, int gtt)
{
union drm_amdgpu_gem_create gem_create = {{}};
int err;
Expand Down

0 comments on commit 4d0e1a4

Please sign in to comment.