Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 807223

Summary: sys-kernel/gentoo-sources-5.13.9 fails to build amdgpu without config_suspend
Product: Gentoo Linux Reporter: DJ Dunn <djdunn.safety>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c?id=5706cb3c910cc8283f344bc37a889a8d523a2c6d
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Upstream patch

Description DJ Dunn 2021-08-09 00:37:22 UTC
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
Comment 2 Mike Pagano gentoo-dev 2021-08-09 12:29:59 UTC
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 ?