Re: [PATCH v6] ACPI: button: Report wakeup key only for power button wakeups
From: kernel test robot
Date: Mon Nov 02 2026 - 15:21:07 EST
Hi Baorui.Liu,
kernel test robot noticed the following build errors:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge linus/master v7.3 next-20261030]
[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/Baorui-Liu/ACPI-button-Report-wakeup-key-only-for-power-button-wakeups/20261102-171049
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20261102091049.856-1-baorliu%40amd.com
patch subject: [PATCH v6] ACPI: button: Report wakeup key only for power button wakeups
config: parisc64-defconfig (https://download.01.org/0day-ci/archive/20261103/202611030112.cVsBZFFE-lkp@xxxxxxxxx/config)
compiler: hppa64-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261103/202611030112.cVsBZFFE-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611030112.cVsBZFFE-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/nouveau/nouveau_connector.c:27:
>> include/acpi/button.h:28:15: error: unknown type name 'bool'
28 | static inline bool acpi_sleep_pwr_btn_wakeup_pending(void)
| ^~~~
include/acpi/button.h:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
+++ |+#include <stdbool.h>
1 | /* SPDX-License-Identifier: GPL-2.0 */
include/acpi/button.h: In function 'acpi_sleep_pwr_btn_wakeup_pending':
>> include/acpi/button.h:30:16: error: 'false' undeclared (first use in this function)
30 | return false;
| ^~~~~
include/acpi/button.h:30:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
include/acpi/button.h:30:16: note: each undeclared identifier is reported only once for each function it appears in
vim +/bool +28 include/acpi/button.h
17
18 /*
19 * Set in acpi_suspend_enter() when the fixed power-button status bit is
20 * observed (IRQ-disabled context). Consumed by the button driver on resume
21 * so KEY_WAKEUP can be reported without calling into the button driver from
22 * that early path. Implemented in sleep.c (built-in); safe when
23 * CONFIG_ACPI_BUTTON=m.
24 */
25 #ifdef CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT
26 bool acpi_sleep_pwr_btn_wakeup_pending(void);
27 #else
> 28 static inline bool acpi_sleep_pwr_btn_wakeup_pending(void)
29 {
> 30 return false;
31 }
32 #endif
33
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki