drivers/platform/x86/amd/pmc.c compile error in 6.0.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

The following error popped up when compiling Linux kernel version 6.0.6:

drivers/platform/x86/amd/pmc.c: In function 'amd_pmc_verify_czn_rtc':
drivers/platform/x86/amd/pmc.c:640:22: error: implicit declaration of function 'amd_pmc_get_smu_version' [-Werror=implicit-function-declaration]
  640 |                 rc = amd_pmc_get_smu_version(pdev);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~

This function call was introduced backported with commit e9847175b266 with the subject line "platform/x86/amd: pmc: Read SMU version during suspend on Cezanne systems".

Please note that amd_pmc_get_smu_version() is defined in an #ifdef CONFIG_DEBUG_FS block, but the new function call is compiled regardless of CONFIG_DEBUG_FS, causing the aforementioned error when building without the Debug Filesystem.


Best regards,
Jaak Ristioja



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux