All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christopher Hall <christopher.s.hall@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, Hao Li <hao3.li@intel.com>
Subject: [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
Date: Sun, 22 Dec 2024 13:32:16 +0800	[thread overview]
Message-ID: <202412221334.TfPILqSy-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-12-22  5:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202412221334.TfPILqSy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=christopher.s.hall@intel.com \
    --cc=hao3.li@intel.com \
    --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.