Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807223 - sys-kernel/gentoo-sources-5.13.9 fails to build amdgpu without config_suspend
Summary: sys-kernel/gentoo-sources-5.13.9 fails to build amdgpu without config_suspend
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://git.kernel.org/pub/scm/linux/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-09 00:37 UTC by DJ Dunn
Modified: 2021-08-24 11:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream patch (amdgpu-fix-checking-pmops-when-pm-sleep-not-enabled.patch,2.19 KB, patch)
2021-08-09 12:29 UTC, Mike Pagano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ?