gentoo-sources 5.13.9 and 5.13.8 won't build they both give this error. Vanilla sources-5.13.9 also give error. 5.13.7 worked, using same .config as 5.13.7. Adding config_suspend allows it to build. # make CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h CC [M] drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.o drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function ‘amdgpu_acpi_is_s0ix_supported’: drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:910:32: error: ‘pm_suspend_target_state’ undeclared (first use in this function) 910 | return pm_suspend_target_state == PM_SUSPEND_TO_IDLE; | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:910:32: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [scripts/Makefile.build:273: drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.o] Error 1 make[3]: *** [scripts/Makefile.build:516: drivers/gpu/drm/amd/amdgpu] Error 2 make[2]: *** [scripts/Makefile.build:516: drivers/gpu/drm] Error 2 make[1]: *** [scripts/Makefile.build:516: drivers/gpu] Error 2 make: *** [Makefile:1853: drivers] Error 2
probably something related to this. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.13.y&id=4e7961b3d5fd9e05a24487b2e81624f74b65a7dc
Created attachment 731827 [details, diff] Upstream patch Since I don't have your .config, can you apply this patch and see if it solves your issue ?