summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c2
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
index a53836703f7..0f4a525cfc9 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.c
@@ -61,7 +61,7 @@ static void amdgpu_bo_list_free(struct kref *ref)
int amdgpu_bo_list_create(struct amdgpu_device *adev, struct drm_file *filp,
struct drm_amdgpu_bo_list_entry *info,
- unsigned num_entries, struct amdgpu_bo_list **result)
+ size_t num_entries, struct amdgpu_bo_list **result)
{
unsigned last_entry = 0, first_userptr = num_entries;
struct amdgpu_bo_list_entry *array;
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.h b/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.h
index f5fb5ba11ad..4e1cde91a3a 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.h
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_bo_list.h
@@ -60,7 +60,7 @@ int amdgpu_bo_create_list_entry_array(struct drm_amdgpu_bo_list_in *in,
int amdgpu_bo_list_create(struct amdgpu_device *adev,
struct drm_file *filp,
struct drm_amdgpu_bo_list_entry *info,
- unsigned num_entries,
+ size_t num_entries,
struct amdgpu_bo_list **list);
static inline struct amdgpu_bo_list_entry *