Current drm-tip doesn’t build with gcc10 - error in amdgpu_amdkfd_gpuvm.c
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
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Yurii Kolesnykov
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_lockedcc1: 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 inbuild(). Aborting…
It's an API change in drm-misc. When my tree gets combined with drm-misc, there is a conflict. It will get resolved once the trees are in sync again.
Alex
Quoted 9 lines
[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_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx