[amdkfd] - build error in amdgpu_amdkfd_gpuvm.c
I'm getting a persistent build error in amdgpu_amdkfd_gpuvm.c:
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function ‘amdgpu_amdkfd_gpuvm_free_memory_of_gpu’: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1357:2: error: implicit declaration of function ‘drm_gem_object_put_unlocked’; did you mean ‘drm_gem_object_put_locked’? [-Werror=implicit-function-declaration] 1357 | drm_gem_object_put_unlocked(&mem->bo->tbo.base); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_gem_object_put_locked cc1: some warnings being treated as errors make: *** [scripts/Makefile.build:267: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.o] Error 1 make: *** [scripts/Makefile.build:488: drivers/gpu/drm/amd/amdgpu] Error 2 make: *** [scripts/Makefile.build:488: drivers/gpu/drm] Error 2 make: *** [scripts/Makefile.build:488: drivers/gpu] Error 2 make: *** [Makefile:1729: drivers] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
This has been going on for about a month now. Since the drm_gem_object_put_unlocked/locked changes were implemented. The issue doesn't manifest in any other part of the kernel build.