From 64094178f05063c6f560a8fcd560f31edc84086a Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 6 Jan 2022 01:14:15 +0000 Subject: [PATCH] unstub amdgpu_gem_force_release() --- sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c index cd9e4cdebae..38718e52306 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gem.c @@ -77,16 +77,17 @@ int amdgpu_gem_object_create(struct amdgpu_device *adev, unsigned long size, return 0; } +int drm_file_cmp(struct drm_file *, struct drm_file *); +SPLAY_PROTOTYPE(drm_file_tree, drm_file, link, drm_file_cmp); + void amdgpu_gem_force_release(struct amdgpu_device *adev) { - STUB(); -#ifdef notyet struct drm_device *ddev = adev_to_drm(adev); struct drm_file *file; mutex_lock(&ddev->filelist_mutex); - list_for_each_entry(file, &ddev->filelist, lhead) { + SPLAY_FOREACH(file, drm_file_tree, &ddev->files) { struct drm_gem_object *gobj; int handle; @@ -101,7 +102,6 @@ void amdgpu_gem_force_release(struct amdgpu_device *adev) } mutex_unlock(&ddev->filelist_mutex); -#endif } /* -- 2.20.1