All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linus-next:linus-next 29/46] ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'platform_profile_cycle' undefined!
@ 2026-11-20 17:13 kernel test robot
  2026-11-20 19:51 ` [PATCH linus-next] platform profile: Use PLATFORM_PROFILE in the asus drivers Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-11-20 17:13 UTC (permalink / raw)
  To: Sasha Levin; +Cc: oe-kbuild-all

tree:   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/20261120181059.GypXyRIq-lkp@intel.com/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/20261120181059.GypXyRIq-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261120181059.GypXyRIq-lkp@intel.com/

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!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH linus-next] platform profile: Use PLATFORM_PROFILE in the asus drivers
  2026-11-20 17:13 [sashal-linus-next:linus-next 29/46] ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'platform_profile_cycle' undefined! kernel test robot
@ 2026-11-20 19:51 ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-11-20 19:51 UTC (permalink / raw)
  To: kernel test robot; +Cc: oe-kbuild-all

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.

Fixes: fc099de5a4ac ("Merge branch 'pm-next' into all-next")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/20261120181059.GypXyRIq-lkp@intel.com/
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/hid/hid-asus.c        | 4 ++--
 drivers/platform/asus/Kconfig | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index dcb3d50f9288e..aca4ab6ab2391 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -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)
diff --git a/drivers/platform/asus/Kconfig b/drivers/platform/asus/Kconfig
index 4b79957f045fc..0219418ce3523 100644
--- a/drivers/platform/asus/Kconfig
+++ b/drivers/platform/asus/Kconfig
@@ -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).
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-20 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 17:13 [sashal-linus-next:linus-next 29/46] ERROR: modpost: drivers/platform/asus/asus-wmi.ko: symbol 'platform_profile_cycle' undefined! kernel test robot
2026-11-20 19:51 ` [PATCH linus-next] platform profile: Use PLATFORM_PROFILE in the asus drivers Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.