mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Baorui.Liu" <baorliu@amd.com>, "Rafael J . Wysocki" <rafael@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
	acpica-devel@lists.linuxfoundation.org,
	kernel test robot <lkp@intel.com>, "Baorui.Liu" <baorliu@amd.com>
Subject: Re: [PATCH v7] ACPI: button: Report wakeup key only for power button wakeups
Date: Tue, 10 Nov 2026 05:12:02 +0800	[thread overview]
Message-ID: <202611100542.1xljQv20-lkp@intel.com> (raw)
In-Reply-To: <20261109082832.496-1-baorliu@amd.com>

Hi Baorui.Liu,

kernel test robot noticed the following build errors:

[auto build test ERROR on ee3b82351a306b559fd132b9b168185fee641a18]

url:    https://github.com/intel-lab-lkp/linux/commits/Baorui-Liu/ACPI-button-Report-wakeup-key-only-for-power-button-wakeups/20261109-162832
base:   ee3b82351a306b559fd132b9b168185fee641a18
patch link:    https://lore.kernel.org/r/20261109082832.496-1-baorliu%40amd.com
patch subject: [PATCH v7] ACPI: button: Report wakeup key only for power button wakeups
config: x86_64-randconfig-1015-20261109 (https://download.01.org/0day-ci/archive/20261110/202611100542.1xljQv20-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/20261110/202611100542.1xljQv20-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/202611100542.1xljQv20-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: drivers/acpi/button.o: in function `acpi_button_resume':
>> drivers/acpi/button.c:568:(.text+0x2384): undefined reference to `acpi_sleep_pwr_btn_wakeup_pending'


vim +568 drivers/acpi/button.c

   544	
   545	static int acpi_button_resume(struct device *dev)
   546	{
   547		struct acpi_button *button = dev_get_drvdata(dev);
   548		struct input_dev *input;
   549		bool report_wakeup = false;
   550	
   551		/*
   552		 * Drain notify work queued while suspended so a late power-button
   553		 * notify still observes suspended == true, sets wakeup_pending, and
   554		 * does not synthesize KEY_POWER for userspace.
   555		 */
   556		acpi_os_wait_events_complete();
   557	
   558		/*
   559		 * Sample and report KEY_WAKEUP before clearing suspended. Otherwise a
   560		 * notify that arrives after sampling but before suspended is cleared
   561		 * can set wakeup_pending and then be dropped without KEY_WAKEUP or
   562		 * KEY_POWER. Clear suspended before wakeup_pending so a new SCI sees
   563		 * suspended == false and takes the normal KEY_POWER path; barrier()
   564		 * keeps that store order.
   565		 */
   566		if (button->type == ACPI_BUTTON_TYPE_POWER) {
   567			report_wakeup = READ_ONCE(button->wakeup_pending) ||
 > 568					acpi_sleep_pwr_btn_wakeup_pending();
   569			if (report_wakeup) {
   570				input = button->input;
   571				input_report_key(input, KEY_WAKEUP, 1);
   572				input_sync(input);
   573				input_report_key(input, KEY_WAKEUP, 0);
   574				input_sync(input);
   575			}
   576		}
   577	
   578		WRITE_ONCE(button->suspended, false);
   579		barrier();
   580		WRITE_ONCE(button->wakeup_pending, false);
   581	
   582		if (button->type == ACPI_BUTTON_TYPE_LID) {
   583			button->last_state = !!acpi_lid_evaluate_state(ACPI_HANDLE(dev));
   584			button->last_time = ktime_get();
   585			acpi_lid_initialize_state(button);
   586		}
   587	
   588		return 0;
   589	}
   590	#endif
   591	

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

  reply	other threads:[~2026-11-09 21:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 12:27 [PATCH] " Baorui Liu
2026-08-07 14:12 ` Rafael J. Wysocki (Intel)
2026-08-19  8:55 ` [PATCH v2 0/1] " Baorui.Liu
2026-08-19  8:55   ` [PATCH v2 1/1] " Baorui.Liu
2026-09-09 14:41     ` Rafael J. Wysocki (Intel)
2026-09-17 14:31     ` [PATCH v3] " Baorui.Liu
2026-09-18 14:36       ` Rafael J. Wysocki (Intel)
2026-09-22  2:42       ` [PATCH v4] " Baorui.Liu
2026-10-12  6:08         ` [PATCH v5] " Baorui.Liu
2026-10-12 18:19           ` Rafael J. Wysocki (Intel)
2026-10-30 13:27             ` Baorui.Liu
2026-11-02  9:10           ` [PATCH v6] " Baorui.Liu
2026-11-02 17:14             ` kernel test robot
2026-11-02 21:47             ` kernel test robot
2026-11-09  8:27             ` [PATCH v7] " Baorui.Liu
2026-11-09  8:28             ` Baorui.Liu
2026-11-09 21:12               ` kernel test robot [this message]
2026-08-20  7:07 ` [PATCH] " 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=202611100542.1xljQv20-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=acpica-devel@lists.linuxfoundation.org \
    --cc=baorliu@amd.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rafael@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®