From: kernel test robot <lkp@intel.com>
To: Jonathan Grant <jg@jguk.org>,
Mario Limonciello <mario.limonciello@amd.com>,
platform-driver-x86@vger.kernel.org, luke@ljones.dev
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] platform/x86: asus-wmi: log thermal notification event
Date: Tue, 17 Mar 2026 01:53:01 +0100 [thread overview]
Message-ID: <202603170109.u5EehsZj-lkp@intel.com> (raw)
In-Reply-To: <94dbe1e1-d706-47aa-abf5-f5d76aacf017@jguk.org>
Hi Jonathan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on amd-pstate/linux-next]
[also build test WARNING on amd-pstate/bleeding-edge linus/master v6.16-rc1 next-20260316]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jonathan-Grant/platform-x86-asus-wmi-log-thermal-notification-event/20260316-204950
base: https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git linux-next
patch link: https://lore.kernel.org/r/94dbe1e1-d706-47aa-abf5-f5d76aacf017%40jguk.org
patch subject: [PATCH v2] platform/x86: asus-wmi: log thermal notification event
config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260317/202603170109.u5EehsZj-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260317/202603170109.u5EehsZj-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/202603170109.u5EehsZj-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/platform/x86/asus-wmi.c: In function 'asus_wmi_handle_event_code':
>> drivers/platform/x86/asus-wmi.c:4599:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
4599 | if (!sparse_keymap_report_event(asus->inputdev, code,
| ^
vim +/else +4599 drivers/platform/x86/asus-wmi.c
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4538
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4539 static void asus_wmi_handle_event_code(int code, struct asus_wmi *asus)
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4540 {
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4541 enum led_brightness led_value;
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4542 unsigned int key_value = 1;
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4543 bool autorelease = 1;
3d7b165539d417 drivers/platform/x86/eeepc-wmi.c Yong Wang 2010-04-11 4544
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4545 if (asus->driver->key_filter) {
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4546 asus->driver->key_filter(asus->driver, &code, &key_value,
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4547 &autorelease);
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4548 if (code == ASUS_WMI_KEY_IGNORE)
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4549 return;
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4550 }
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4551
a5b92be2482e5f drivers/platform/x86/asus-wmi.c Hans de Goede 2023-10-17 4552 if (acpi_video_get_backlight_type() == acpi_backlight_vendor &&
a5b92be2482e5f drivers/platform/x86/asus-wmi.c Hans de Goede 2023-10-17 4553 code >= NOTIFY_BRNUP_MIN && code <= NOTIFY_BRNDOWN_MAX) {
a5b92be2482e5f drivers/platform/x86/asus-wmi.c Hans de Goede 2023-10-17 4554 asus_wmi_backlight_notify(asus, code);
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4555 return;
a2a96f0c722180 drivers/platform/x86/asus-wmi.c AceLan Kao 2012-10-03 4556 }
a2a96f0c722180 drivers/platform/x86/asus-wmi.c AceLan Kao 2012-10-03 4557
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4558 scoped_guard(spinlock_irqsave, &asus_ref.lock)
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4559 led_value = asus->kbd_led_wk;
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4560
dbb3d78f61bade drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4561 if (code == NOTIFY_KBD_BRTUP) {
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4562 kbd_led_set_by_kbd(asus, led_value + 1);
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4563 return;
dbb3d78f61bade drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4564 }
dbb3d78f61bade drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4565 if (code == NOTIFY_KBD_BRTDWN) {
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4566 kbd_led_set_by_kbd(asus, led_value - 1);
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4567 return;
dbb3d78f61bade drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4568 }
ed99d29b2b1562 drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4569 if (code == NOTIFY_KBD_BRTTOGGLE) {
7525566abd360c drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4570 if (led_value >= ASUS_EV_MAX_BRIGHTNESS)
29f6eb533c3be9 drivers/platform/x86/asus-wmi.c Jian-Hong Pan 2018-10-22 4571 kbd_led_set_by_kbd(asus, 0);
ed99d29b2b1562 drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4572 else
fac55d29581fcd drivers/platform/x86/asus-wmi.c Antheas Kapenekakis 2026-01-22 4573 kbd_led_set_by_kbd(asus, led_value + 1);
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4574 return;
ed99d29b2b1562 drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4575 }
dbb3d78f61bade drivers/platform/x86/asus-wmi.c Chris Chiu 2018-06-20 4576
487579bab867e7 drivers/platform/x86/asus-wmi.c Chris Chiu 2019-04-18 4577 if (code == NOTIFY_FNLOCK_TOGGLE) {
487579bab867e7 drivers/platform/x86/asus-wmi.c Chris Chiu 2019-04-18 4578 asus->fnlock_locked = !asus->fnlock_locked;
487579bab867e7 drivers/platform/x86/asus-wmi.c Chris Chiu 2019-04-18 4579 asus_wmi_fnlock_update(asus);
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4580 return;
487579bab867e7 drivers/platform/x86/asus-wmi.c Chris Chiu 2019-04-18 4581 }
487579bab867e7 drivers/platform/x86/asus-wmi.c Chris Chiu 2019-04-18 4582
1ea0d3b46798af drivers/platform/x86/asus-wmi.c Hans de Goede 2022-08-24 4583 if (code == asus->tablet_switch_event_code) {
1ea0d3b46798af drivers/platform/x86/asus-wmi.c Hans de Goede 2022-08-24 4584 asus_wmi_tablet_mode_get_state(asus);
e397c3c460bf38 drivers/platform/x86/asus-wmi.c Luke D. Jones 2022-08-13 4585 return;
e397c3c460bf38 drivers/platform/x86/asus-wmi.c Luke D. Jones 2022-08-13 4586 }
e397c3c460bf38 drivers/platform/x86/asus-wmi.c Luke D. Jones 2022-08-13 4587
601eb4c8e15002 drivers/platform/x86/asus-wmi.c Luke D. Jones 2022-08-26 4588 if (code == NOTIFY_KBD_FBM || code == NOTIFY_KBD_TTP) {
601eb4c8e15002 drivers/platform/x86/asus-wmi.c Luke D. Jones 2022-08-26 4589 if (asus->fan_boost_mode_available)
9af93db9e140a4 drivers/platform/x86/asus-wmi.c Daniel Drake 2019-07-17 4590 fan_boost_mode_switch_next(asus);
bcbfcebda2cbc6 drivers/platform/x86/asus-wmi.c Mohamed Ghanmi 2024-06-09 4591 if (asus->throttle_thermal_policy_dev)
b0955ce555478e drivers/platform/x86/asus-wmi.c Armin Wolf 2024-11-07 4592 platform_profile_cycle();
2daa86e78c494d drivers/platform/x86/asus-wmi.c Leonid Maksymchuk 2019-12-15 4593 return;
2daa86e78c494d drivers/platform/x86/asus-wmi.c Leonid Maksymchuk 2019-12-15 4594 }
2daa86e78c494d drivers/platform/x86/asus-wmi.c Leonid Maksymchuk 2019-12-15 4595
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4596 if (is_display_toggle(code) && asus->driver->quirks->no_display_toggle)
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4597 return;
a2a96f0c722180 drivers/platform/x86/asus-wmi.c AceLan Kao 2012-10-03 4598
a2a96f0c722180 drivers/platform/x86/asus-wmi.c AceLan Kao 2012-10-03 @4599 if (!sparse_keymap_report_event(asus->inputdev, code,
c4453f6a7ceff3 drivers/platform/x86/asus-wmi.c Seth Forshee 2011-07-01 4600 key_value, autorelease))
2cf4f7ebe37ac2 drivers/platform/x86/asus-wmi.c Jonathan Grant 2026-03-16 4601 if (code == NOTIFY_THERMAL)
2cf4f7ebe37ac2 drivers/platform/x86/asus-wmi.c Jonathan Grant 2026-03-16 4602 pr_info("Thermal state change\n");
2cf4f7ebe37ac2 drivers/platform/x86/asus-wmi.c Jonathan Grant 2026-03-16 4603 else
3e70a57b659463 drivers/platform/x86/asus-wmi.c Luca Stefani 2022-05-06 4604 pr_info("Unknown key code 0x%x\n", code);
8abd752bd4733e drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14 4605 }
3d7b165539d417 drivers/platform/x86/eeepc-wmi.c Yong Wang 2010-04-11 4606
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-17 0:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 21:00 [PATCH]: asus_wmi: Unknown key code 0x6d Jonathan Grant
2026-03-13 21:45 ` Mario Limonciello
2026-03-16 12:49 ` [PATCH v2] platform/x86: asus-wmi: log thermal notification event Jonathan Grant
2026-03-16 15:24 ` Mario Limonciello
2026-03-17 21:30 ` [PATCH v3] " Jonathan Grant
2026-03-18 1:40 ` Mario Limonciello
2026-03-17 0:53 ` kernel test robot [this message]
2026-03-17 17:33 ` [PATCH v2] " kernel test robot
2026-03-17 20:30 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603170109.u5EehsZj-lkp@intel.com \
--to=lkp@intel.com \
--cc=jg@jguk.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=mario.limonciello@amd.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.