From: kernel test robot <lkp@intel.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 12/12] HID: surface: Use pm_ptr_sleep instead of #ifdef CONFIG_PM_SLEEP
Date: Tue, 13 Jan 2026 02:14:32 +0800 [thread overview]
Message-ID: <202601130224.PFFZLOhf-lkp@intel.com> (raw)
In-Reply-To: <20260112105500.3664834-13-hadess@hadess.net>
Hi Bastien,
kernel test robot noticed the following build errors:
[auto build test ERROR on hid/for-next]
[also build test ERROR on linus/master v6.19-rc5 next-20260109]
[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/Bastien-Nocera/HID-hid-alps-Use-pm_ptr-instead-of-ifdef-CONFIG_PM/20260112-190559
base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link: https://lore.kernel.org/r/20260112105500.3664834-13-hadess%40hadess.net
patch subject: [PATCH 12/12] HID: surface: Use pm_ptr_sleep instead of #ifdef CONFIG_PM_SLEEP
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20260113/202601130224.PFFZLOhf-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260113/202601130224.PFFZLOhf-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/202601130224.PFFZLOhf-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/hid/surface-hid/surface_hid.c:244:9: error: call to undeclared function 'pm_ptr_sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
244 | .pm = pm_ptr_sleep(&surface_hid_pm_ops),
| ^
>> drivers/hid/surface-hid/surface_hid.c:244:9: error: incompatible integer to pointer conversion initializing 'const struct dev_pm_ops *' with an expression of type 'int' [-Wint-conversion]
244 | .pm = pm_ptr_sleep(&surface_hid_pm_ops),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/surface-hid/surface_hid.c:244:9: error: initializer element is not a compile-time constant
244 | .pm = pm_ptr_sleep(&surface_hid_pm_ops),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
vim +/pm_ptr_sleep +244 drivers/hid/surface-hid/surface_hid.c
237
238 static struct ssam_device_driver surface_hid_driver = {
239 .probe = surface_hid_probe,
240 .remove = surface_hid_remove,
241 .match_table = surface_hid_match,
242 .driver = {
243 .name = "surface_hid",
> 244 .pm = pm_ptr_sleep(&surface_hid_pm_ops),
245 .probe_type = PROBE_PREFER_ASYNCHRONOUS,
246 },
247 };
248 module_ssam_device_driver(surface_hid_driver);
249
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-12 18:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 10:52 [PATCH 00/12] HID: Use pm_*ptr instead of #ifdef CONFIG_PM* Bastien Nocera
2026-01-12 10:52 ` [PATCH 01/12] HID: hid-alps: Use pm_ptr instead of #ifdef CONFIG_PM Bastien Nocera
2026-01-12 10:52 ` [PATCH 02/12] HID: appletb-kbd: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 03/12] HID: asus: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 04/12] HID: lenovo: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 05/12] HID: logitech-dj: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 06/12] HID: nintendo: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 07/12] HID: picolcd_core: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 08/12] HID: hid-sensor-hub: " Bastien Nocera
2026-01-12 10:52 ` [PATCH 09/12] HID: sony: " Bastien Nocera
2026-01-12 17:31 ` kernel test robot
2026-01-12 10:52 ` [PATCH 10/12] HID: uclogic: " Bastien Nocera
2026-01-12 10:53 ` [PATCH 11/12] HID: wacom: " Bastien Nocera
2026-01-12 10:53 ` [PATCH 12/12] HID: surface: Use pm_ptr_sleep instead of #ifdef CONFIG_PM_SLEEP Bastien Nocera
2026-01-12 17:00 ` kernel test robot
2026-01-12 18:14 ` kernel test robot [this message]
2026-01-12 16:41 ` [PATCH 00/12] HID: Use pm_*ptr instead of #ifdef CONFIG_PM* Jiri Kosina
2026-01-12 17:00 ` Benjamin Tissoires
2026-01-12 17:03 ` Jiri Kosina
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=202601130224.PFFZLOhf-lkp@intel.com \
--to=lkp@intel.com \
--cc=hadess@hadess.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.