|
Kamal Heib |
0f94ab |
From 4d0e1a40d8662cf0e2b00ef944ddf6dcef27f7f2 Mon Sep 17 00:00:00 2001
|
|
Kamal Heib |
0f94ab |
From: Kamal Heib <kheib@redhat.com>
|
|
Kamal Heib |
0f94ab |
Date: Fri, 8 Mar 2024 21:46:56 -0500
|
|
Kamal Heib |
0f94ab |
Subject: [PATCH] pyverbs: Fix build failure
|
|
Kamal Heib |
0f94ab |
MIME-Version: 1.0
|
|
Kamal Heib |
0f94ab |
Content-Type: text/plain; charset=UTF-8
|
|
Kamal Heib |
0f94ab |
Content-Transfer-Encoding: 8bit
|
|
Kamal Heib |
0f94ab |
|
|
Kamal Heib |
0f94ab |
Fix the following error:
|
|
Kamal Heib |
0f94ab |
|
|
Kamal Heib |
0f94ab |
rdma-core-50.0/pyverbs/dmabuf_alloc.c: In function ‘drm_open’:
|
|
Kamal Heib |
0f94ab |
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]
|
|
Kamal Heib |
0f94ab |
122 | drm->alloc = amdgpu_alloc;
|
|
Kamal Heib |
0f94ab |
|
|
Kamal Heib |
0f94ab |
Signed-off-by: Kamal Heib <kheib@redhat.com>
|
|
Kamal Heib |
0f94ab |
---
|
|
Kamal Heib |
0f94ab |
pyverbs/dmabuf_alloc.c | 2 +-
|
|
Kamal Heib |
0f94ab |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kamal Heib |
0f94ab |
|
|
Kamal Heib |
0f94ab |
diff --git a/pyverbs/dmabuf_alloc.c b/pyverbs/dmabuf_alloc.c
|
|
Kamal Heib |
0f94ab |
index e3ea0a44f3d5..68f25928a1b7 100644
|
|
Kamal Heib |
0f94ab |
--- a/pyverbs/dmabuf_alloc.c
|
|
Kamal Heib |
0f94ab |
+++ b/pyverbs/dmabuf_alloc.c
|
|
Kamal Heib |
0f94ab |
@@ -43,7 +43,7 @@ static int i915_alloc(struct drm *drm, uint64_t size, uint32_t *handle, int gtt)
|
|
Kamal Heib |
0f94ab |
return 0;
|
|
Kamal Heib |
0f94ab |
}
|
|
Kamal Heib |
0f94ab |
|
|
Kamal Heib |
0f94ab |
-static int amdgpu_alloc(struct drm *drm, size_t size, uint32_t *handle, int gtt)
|
|
Kamal Heib |
0f94ab |
+static int amdgpu_alloc(struct drm *drm, uint64_t size, uint32_t *handle, int gtt)
|
|
Kamal Heib |
0f94ab |
{
|
|
Kamal Heib |
0f94ab |
union drm_amdgpu_gem_create gem_create = {{}};
|
|
Kamal Heib |
0f94ab |
int err;
|
|
Kamal Heib |
0f94ab |
--
|
|
Kamal Heib |
0f94ab |
2.44.0
|
|
Kamal Heib |
0f94ab |
|