* [thierryreding:pmc 1/26] drivers/hv/vmbus_drv.c:2638:13: error: incompatible function pointer types initializing 'int (*)(struct syscore_ops *)' with an expression of type 'int (void)'
@ 2025-02-05 11:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-05 11:02 UTC (permalink / raw)
To: Thierry Reding; +Cc: llvm, oe-kbuild-all
tree: https://github.com/thierryreding/linux pmc
head: a402c19b24a5dc1ba2f6fb41de0080a97c202c1b
commit: f5ff652a1c2ce0a75ce86425cbc5f499933c9018 [1/26] syscore: Pass context data to callbacks
config: i386-buildonly-randconfig-005-20250205 (https://download.01.org/0day-ci/archive/20250205/202502051808.kZGfNpnd-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250205/202502051808.kZGfNpnd-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/202502051808.kZGfNpnd-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/hv/vmbus_drv.c:2638:13: error: incompatible function pointer types initializing 'int (*)(struct syscore_ops *)' with an expression of type 'int (void)' [-Wincompatible-function-pointer-types]
2638 | .suspend = hv_synic_suspend,
| ^~~~~~~~~~~~~~~~
>> drivers/hv/vmbus_drv.c:2639:12: error: incompatible function pointer types initializing 'void (*)(struct syscore_ops *)' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types]
2639 | .resume = hv_synic_resume,
| ^~~~~~~~~~~~~~~
2 errors generated.
--
>> arch/x86/kernel/cpu/intel_epb.c:188:20: error: too few arguments to function call, single argument 'ops' was not specified
188 | intel_epb_restore();
| ~~~~~~~~~~~~~~~~~ ^
arch/x86/kernel/cpu/intel_epb.c:92:13: note: 'intel_epb_restore' declared here
92 | static void intel_epb_restore(struct syscore_ops *ops)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/intel_epb.c:202:17: error: too few arguments to function call, single argument 'ops' was not specified
202 | intel_epb_save();
| ~~~~~~~~~~~~~~ ^
arch/x86/kernel/cpu/intel_epb.c:78:12: note: 'intel_epb_save' declared here
78 | static int intel_epb_save(struct syscore_ops *ops)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
--
>> arch/x86/kernel/cpu/microcode/core.c:754:6: error: conflicting types for 'microcode_bsp_resume'
754 | void microcode_bsp_resume(struct syscore_ops *ops)
| ^
arch/x86/include/asm/microcode.h:19:6: note: previous declaration is here
19 | void microcode_bsp_resume(void);
| ^
>> arch/x86/kernel/cpu/microcode/core.c:766:12: error: incompatible function pointer types initializing 'void (*)(struct syscore_ops *)' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types]
766 | .resume = microcode_bsp_resume,
| ^~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +2638 drivers/hv/vmbus_drv.c
63ecc6d22ce466 Dexuan Cui 2019-09-05 2635
63ecc6d22ce466 Dexuan Cui 2019-09-05 2636 /* The callbacks run only on CPU0, with irqs_disabled. */
63ecc6d22ce466 Dexuan Cui 2019-09-05 2637 static struct syscore_ops hv_synic_syscore_ops = {
63ecc6d22ce466 Dexuan Cui 2019-09-05 @2638 .suspend = hv_synic_suspend,
63ecc6d22ce466 Dexuan Cui 2019-09-05 @2639 .resume = hv_synic_resume,
63ecc6d22ce466 Dexuan Cui 2019-09-05 2640 };
63ecc6d22ce466 Dexuan Cui 2019-09-05 2641
:::::: The code at line 2638 was first introduced by commit
:::::: 63ecc6d22ce46643165c391a9c90ba67e22e1c0f Drivers: hv: vmbus: Suspend/resume the synic for hibernation
:::::: TO: Dexuan Cui <decui@microsoft.com>
:::::: CC: Sasha Levin <sashal@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-05 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 11:02 [thierryreding:pmc 1/26] drivers/hv/vmbus_drv.c:2638:13: error: incompatible function pointer types initializing 'int (*)(struct syscore_ops *)' with an expression of type 'int (void)' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox