All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/x86/events/intel/uncore_snb.c:596:27: error: initialization of 'int (*)(struct intel_uncore_box *)' from incompatible pointer type 'void (*)(struct intel_uncore_box *)'
@ 2026-05-15 17:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-15 17:07 UTC (permalink / raw)
  To: Zide Chen; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Zide-Chen/perf-x86-intel-uncore-Rename-refcount-fields-and-other-cleanups/20260515-133040
head:   c085f636ae022b2ae8e592275c3c8547a660c069
commit: bafd0d397ee00033633fc9a8383d5726a36d72ba perf/x86/intel/uncore: Let init_box() callback report failures
date:   12 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260515/202605151951.9FkQ28y5-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/20260515/202605151951.9FkQ28y5-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/202605151951.9FkQ28y5-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/events/intel/uncore_snb.c:596:27: error: initialization of 'int (*)(struct intel_uncore_box *)' from incompatible pointer type 'void (*)(struct intel_uncore_box *)' [-Wincompatible-pointer-types]
     596 |         .init_box       = adl_uncore_msr_init_box,
         |                           ^~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/events/intel/uncore_snb.c:596:27: note: (near initialization for 'adl_uncore_msr_ops.init_box')


vim +596 arch/x86/events/intel/uncore_snb.c

772ed05f3c5ce7 Kan Liang 2021-04-12  594  
772ed05f3c5ce7 Kan Liang 2021-04-12  595  static struct intel_uncore_ops adl_uncore_msr_ops = {
772ed05f3c5ce7 Kan Liang 2021-04-12 @596  	.init_box	= adl_uncore_msr_init_box,
772ed05f3c5ce7 Kan Liang 2021-04-12  597  	.enable_box	= adl_uncore_msr_enable_box,
772ed05f3c5ce7 Kan Liang 2021-04-12  598  	.disable_box	= adl_uncore_msr_disable_box,
772ed05f3c5ce7 Kan Liang 2021-04-12  599  	.exit_box	= adl_uncore_msr_exit_box,
772ed05f3c5ce7 Kan Liang 2021-04-12  600  	.disable_event	= snb_uncore_msr_disable_event,
772ed05f3c5ce7 Kan Liang 2021-04-12  601  	.enable_event	= snb_uncore_msr_enable_event,
772ed05f3c5ce7 Kan Liang 2021-04-12  602  	.read_counter	= uncore_msr_read_counter,
772ed05f3c5ce7 Kan Liang 2021-04-12  603  };
772ed05f3c5ce7 Kan Liang 2021-04-12  604  

--
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:[~2026-05-15 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15 17:07 arch/x86/events/intel/uncore_snb.c:596:27: error: initialization of 'int (*)(struct intel_uncore_box *)' from incompatible pointer type 'void (*)(struct intel_uncore_box *)' kernel test robot

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.