tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: c7d729d3d7d2d1fffd0e49d7b986216d4a2ba80c
commit: c7d729d3d7d2d1fffd0e49d7b986216d4a2ba80c [1/1] FROMGIT: drm/amdgpu: Check pmops
for desired suspend state
config: x86_64-randconfig-a014-20210811 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout c7d729d3d7d2d1fffd0e49d7b986216d4a2ba80c
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function
'amdgpu_acpi_is_s0ix_supported':
> drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1045:11: error:
'pm_suspend_target_state' undeclared (first use in this function)
1045 |
return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1045:11: note: each undeclared identifier is
reported only once for each function it appears in
vim +/pm_suspend_target_state +1045 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
1032
1033 /**
1034 * amdgpu_acpi_is_s0ix_supported
1035 *
1036 * @adev: amdgpu_device_pointer
1037 *
1038 * returns true if supported, false if not.
1039 */
1040 bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev)
1041 {
1042 #if defined(CONFIG_AMD_PMC) || defined(CONFIG_AMD_PMC_MODULE)
1043 if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
1044 if (adev->flags & AMD_IS_APU)
1045 return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org