Current drm-tip =?utf-8?Q?doesn=E2=80=99t_?=build with gcc10 - error in amdgpu_amdkfd_gpuvm.c

Yurii Kolesnykov root at yurikoles.com
Sun May 31 13:46:07 UTC 2020


Originally reported by jghodd[1] in linux-drm-tip-git AUR package [2], also reported on drm/amd on Freedesktop GitLab [3].

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[4]: *** [scripts/Makefile.build:267: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.o] Error 1 make[3]: *** [scripts/Makefile.build:488: drivers/gpu/drm/amd/amdgpu] Error 2 make[2]: *** [scripts/Makefile.build:488: drivers/gpu/drm] Error 2 make[1]: *** [scripts/Makefile.build:488: drivers/gpu] Error 2 make: *** [Makefile:1729: drivers] Error 2 ==> ERROR: A failure occurred in build(). Aborting…

[1] https://aur.archlinux.org/account/jghodd
[2] https://aur.archlinux.org/pkgbase/linux-drm-tip-git
[3] https://gitlab.freedesktop.org/drm/amd/-/issues/1156




More information about the amd-gfx mailing list