LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: use of undeclared identifier 'pm_suspend_target_state'
@ 2021-07-30 8:17 kernel test robot
2021-07-30 22:33 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-07-30 8:17 UTC (permalink / raw)
To: Pratik Vishwakarma
Cc: clang-built-linux, kbuild-all, linux-kernel, Alex Deucher
[-- Attachment #1: Type: text/plain, Size: 2227 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 764a5bc89b12b82c18ce7ca5d7c1b10dd748a440
commit: 91e273712ab8dd8c31924ac7714b21e011137e98 drm/amdgpu: Check pmops for desired suspend state
date: 3 days ago
config: x86_64-randconfig-a002-20210730 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c49df15c278857adecd12db6bb1cdc96885f7079)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91e273712ab8dd8c31924ac7714b21e011137e98
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 91e273712ab8dd8c31924ac7714b21e011137e98
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: use of undeclared identifier 'pm_suspend_target_state'
return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
^
1 error generated.
vim +/pm_suspend_target_state +1046 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
1033
1034 /**
1035 * amdgpu_acpi_is_s0ix_supported
1036 *
1037 * @adev: amdgpu_device_pointer
1038 *
1039 * returns true if supported, false if not.
1040 */
1041 bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev)
1042 {
1043 #if defined(CONFIG_AMD_PMC) || defined(CONFIG_AMD_PMC_MODULE)
1044 if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
1045 if (adev->flags & AMD_IS_APU)
> 1046 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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39710 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: use of undeclared identifier 'pm_suspend_target_state'
2021-07-30 8:17 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: use of undeclared identifier 'pm_suspend_target_state' kernel test robot
@ 2021-07-30 22:33 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2021-07-30 22:33 UTC (permalink / raw)
To: kernel test robot, Pratik Vishwakarma
Cc: clang-built-linux, kbuild-all, linux-kernel, Alex Deucher
On 7/30/21 1:17 AM, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 764a5bc89b12b82c18ce7ca5d7c1b10dd748a440
> commit: 91e273712ab8dd8c31924ac7714b21e011137e98 drm/amdgpu: Check pmops for desired suspend state
> date: 3 days ago
> config: x86_64-randconfig-a002-20210730 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c49df15c278857adecd12db6bb1cdc96885f7079)
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91e273712ab8dd8c31924ac7714b21e011137e98
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 91e273712ab8dd8c31924ac7714b21e011137e98
> # save the attached .config to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: use of undeclared identifier 'pm_suspend_target_state'
> return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
> ^
> 1 error generated.
A patch has been posted and accepted.
https://lore.kernel.org/lkml/CADnq5_PPYtdb17WLtgjeS3THXBeHw_DyMKueZ4LP8cVS1G8Tcw@mail.gmail.com/
--
~Randy
Reported-by: Randy Dunlap <rdunlap@infradead.org>
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-30 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 8:17 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: use of undeclared identifier 'pm_suspend_target_state' kernel test robot
2021-07-30 22:33 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).