ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'platform_profile_cycle' undefined!
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linus-next.git linus-next head: aab799f53c8a83520a9fc5d4231cb1e613edd817 commit: eca57a9649ee5935e7c3151cc4c29bbd24cdec88 [29/46] Merge branch 'pm-next' into all-next config: riscv-randconfig-2200-20261120 (https://download.01.org/0day-ci/archive/20261120/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 8.5.0 smatch: v0.5.0-9187-g5189e3fb reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261120/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'platform_profile_cycle' undefined! >> ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'devm_platform_profile_register' undefined!
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
PATCH 1/1 platform profile: Use PLATFORM_PROFILE in the asus drivers
Commit 699041135f75 ("platform profile: Extract the core from ACPI") in the pm tree renames ACPI_PLATFORM_PROFILE to PLATFORM_PROFILE. Two users from other trees still have the old name:
commit ef696e89f836 ("platform/asus: Move ASUS platform drivers out of drivers/platform/x86") in the pdx86 tree moves ASUS_WMI with "select ACPI_PLATFORM_PROFILE", so a config where nothing else selects PLATFORM_PROFILE fails to link:
ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'devm_platform_profile_register' undefined!
ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'platform_profile_cycle' undefined!
commit d220bf485598 ("HID: asus: Cycle the platform profile from the Zenbook Duo profile key") in the hid tree checks IS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE), which is now always false, so the profile key does nothing.
--- drivers/hid/hid-asus.c | 4 ++-- drivers/platform/asus/Kconfig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/hid/hid-asus.c +2 -2
@@ -438,7 +438,7 @@ static int asus_platform_profile_cycle(struct asus_drvdata *drvdata)struct asus_worker *worker = drvdata->worker;struct asus_work_action *action, *pending; -if (!IS_REACHABLE (CONFIG_ACPI_PLATFORM_PROFILE )) +if (!IS_REACHABLE (CONFIG_PLATFORM_PROFILE ))return 0 ;guard (spinlock_irqsave)(&worker->lock);
@@ -870,7 +870,7 @@ static void asus_work(struct work_struct *work)asus_kbd_wmi_fan (worker->hdev, &action->data.fan_hid_data);break ;case PLATFORM_PROFILE_CYCLE : -if (!IS_REACHABLE (CONFIG_ACPI_PLATFORM_PROFILE )) +if (!IS_REACHABLE (CONFIG_PLATFORM_PROFILE ))break ; ret =platform_profile_cycle ();if (ret)
drivers/platform/asus/Kconfig +1 -1
@@ -127,7 +127,7 @@ config ASUS_WMI select INPUT_SPARSEKMAP select LEDS_CLASS select NEW_LEDS - select ACPI_PLATFORM_PROFILE + select PLATFORM_PROFILE help Say Y here if you have a WMI aware Asus laptop (like Eee PCs or new Asus Notebooks).
Signature · 1 line
2.53.0