Skip to contentSkip to conversation

build error at drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471

linux-next Abdul Haleem 2 participants 2 messages Aug 22, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Greeting's

Today's linux-next kernel 5.3.0-rc5-next-20190820 failed to build on my powerpc machine

Build errors:
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c: In function amdgpu_exit:
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471:2: error: implicit declaration of function mmu_notifier_synchronize [-Werror=implicit-function-declaration]
mmu_notifier_synchronize();
^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o] Error 1 make[3]: *** [drivers/gpu/drm/amd/amdgpu] Error 2

It was introduced with commit c7d8b7 (hmm: use mmu_notifier_get/put for 'struct hmm')

Reverting the commit fixes the issue.

Signature · 4 lines
Regard's

Abdul Haleem
IBM Linux Technology Centre
#1 lore raw

Hi Abdul,

Quoted 15 lines · On Thu, 22 Aug 2019 11:16:51 +0530 Abdul Haleem <[email protected]>…

Today's linux-next kernel 5.3.0-rc5-next-20190820 failed to build on my powerpc machine

Build errors:
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c: In function amdgpu_exit:
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471:2: error: implicit declaration of function mmu_notifier_synchronize [-Werror=implicit-function-declaration]
mmu_notifier_synchronize();
^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [drivers/gpu/drm/amd/amdgpu/amdgpu_drv.o] Error 1 make[3]: *** [drivers/gpu/drm/amd/amdgpu] Error 2

Quoted 2 lines

It was introduced with commit c7d8b7 (hmm: use mmu_notifier_get/put for 'struct hmm')

This should have been fixed in next-20190821.

Signature · 2 lines
Cheers,
Stephen Rothwell