All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:6.12/linux 905/1030] drivers/ptp/ptp-intel-pmc-tgpio.c:744:36: warning: 'intel_pmc_acpi_match' defined but not used
@ 2024-12-22  5:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-22  5:32 UTC (permalink / raw)
  To: Christopher Hall; +Cc: oe-kbuild-all, Hao Li

tree:   https://github.com/intel/linux-intel-lts.git 6.12/linux
head:   b4412bb81319acf5aa9334b91c917b1899ffd570
commit: b46963784ab6c43803287df41706dd5492e23e22 [905/1030] drivers/ptp: Add support for PMC Time-Aware GPIO Driver
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20241222/202412221334.TfPILqSy-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241222/202412221334.TfPILqSy-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/202412221334.TfPILqSy-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/ptp/ptp-intel-pmc-tgpio.c:759:27: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Werror=incompatible-pointer-types]
     759 |         .remove         = intel_pmc_tgpio_remove,
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   drivers/ptp/ptp-intel-pmc-tgpio.c:759:27: note: (near initialization for 'intel_pmc_tgpio_driver.<anonymous>.remove')
>> drivers/ptp/ptp-intel-pmc-tgpio.c:744:36: warning: 'intel_pmc_acpi_match' defined but not used [-Wunused-const-variable=]
     744 | static const struct acpi_device_id intel_pmc_acpi_match[] = {
         |                                    ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/intel_pmc_acpi_match +744 drivers/ptp/ptp-intel-pmc-tgpio.c

   743	
 > 744	static const struct acpi_device_id intel_pmc_acpi_match[] = {
   745		{ "INTC1021", 0 }, /* EHL */
   746		{ "INTC1022", 0 }, /* EHL */
   747		{ "INTC1023", 0 }, /* TGL */
   748		{ "INTC1024", 0 }, /* TGL */
   749		{  },
   750	};
   751	

-- 
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:[~2024-12-22  5:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22  5:32 [intel-lts:6.12/linux 905/1030] drivers/ptp/ptp-intel-pmc-tgpio.c:744:36: warning: 'intel_pmc_acpi_match' defined but not used 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.