public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
* [hid:for-6.20/pm_ptr 7/12] drivers/hid/hid-picolcd_core.c:651:33: error: 'picolcd_suspend' undeclared here (not in a function); did you mean 'picolcd_reset'?
@ 2026-01-26  2:04 kernel test robot
  2026-01-28 17:43 ` Bastien Nocera
  0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2026-01-26  2:04 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: oe-kbuild-all, linux-input, Jiri Kosina

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.20/pm_ptr
head:   d68a5fd939f460a7db76d127005af51cb13c69fa
commit: 318f7b0f1bea13d3aa0506fe6f40399f11c4ae52 [7/12] HID: picolcd_core: Use pm_ptr instead of #ifdef CONFIG_PM
config: i386-randconfig-2006-20250804 (https://download.01.org/0day-ci/archive/20260126/202601260353.Dk5ekiee-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/20260126/202601260353.Dk5ekiee-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/202601260353.Dk5ekiee-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:36,
                    from include/linux/random.h:7,
                    from include/linux/nodemask.h:94,
                    from include/linux/numa.h:6,
                    from include/linux/cpumask.h:15,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:63,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/slab.h:16,
                    from include/linux/hid.h:19,
                    from drivers/hid/hid-picolcd_core.c:10:
>> drivers/hid/hid-picolcd_core.c:651:33: error: 'picolcd_suspend' undeclared here (not in a function); did you mean 'picolcd_reset'?
     651 |         .suspend =       pm_ptr(picolcd_suspend),
         |                                 ^~~~~~~~~~~~~~~
   include/linux/util_macros.h:136:44: note: in definition of macro 'PTR_IF'
     136 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   drivers/hid/hid-picolcd_core.c:651:26: note: in expansion of macro 'pm_ptr'
     651 |         .suspend =       pm_ptr(picolcd_suspend),
         |                          ^~~~~~
>> drivers/hid/hid-picolcd_core.c:652:33: error: 'picolcd_resume' undeclared here (not in a function); did you mean 'picolcd_remove'?
     652 |         .resume =        pm_ptr(picolcd_resume),
         |                                 ^~~~~~~~~~~~~~
   include/linux/util_macros.h:136:44: note: in definition of macro 'PTR_IF'
     136 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   drivers/hid/hid-picolcd_core.c:652:26: note: in expansion of macro 'pm_ptr'
     652 |         .resume =        pm_ptr(picolcd_resume),
         |                          ^~~~~~
>> drivers/hid/hid-picolcd_core.c:653:33: error: 'picolcd_reset_resume' undeclared here (not in a function); did you mean 'picolcd_reset'?
     653 |         .reset_resume =  pm_ptr(picolcd_reset_resume),
         |                                 ^~~~~~~~~~~~~~~~~~~~
   include/linux/util_macros.h:136:44: note: in definition of macro 'PTR_IF'
     136 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   drivers/hid/hid-picolcd_core.c:653:26: note: in expansion of macro 'pm_ptr'
     653 |         .reset_resume =  pm_ptr(picolcd_reset_resume),
         |                          ^~~~~~


vim +651 drivers/hid/hid-picolcd_core.c

   644	
   645	static struct hid_driver picolcd_driver = {
   646		.name =          "hid-picolcd",
   647		.id_table =      picolcd_devices,
   648		.probe =         picolcd_probe,
   649		.remove =        picolcd_remove,
   650		.raw_event =     picolcd_raw_event,
 > 651		.suspend =       pm_ptr(picolcd_suspend),
 > 652		.resume =        pm_ptr(picolcd_resume),
 > 653		.reset_resume =  pm_ptr(picolcd_reset_resume),
   654	};
   655	module_hid_driver(picolcd_driver);
   656	

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

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

end of thread, other threads:[~2026-01-28 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26  2:04 [hid:for-6.20/pm_ptr 7/12] drivers/hid/hid-picolcd_core.c:651:33: error: 'picolcd_suspend' undeclared here (not in a function); did you mean 'picolcd_reset'? kernel test robot
2026-01-28 17:43 ` Bastien Nocera
2026-01-28 17:46   ` Jiri Kosina
2026-01-28 17:48     ` Bastien Nocera
2026-01-28 18:17     ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox