Re: [PATCH] HID: hid-goodix: Add Goodix HID-over-SPI driver

From: kernel test robot
Date: Fri May 24 2024 - 14:37:53 EST


Hi Charles,

kernel test robot noticed the following build warnings:

[auto build test WARNING on hid/for-next]
[also build test WARNING on linus/master v6.9 next-20240523]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Charles-Wang/HID-hid-goodix-Add-Goodix-HID-over-SPI-driver/20240524-183743
base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link: https://lore.kernel.org/r/20240524103407.36861-1-charles.goodix%40gmail.com
patch subject: [PATCH] HID: hid-goodix: Add Goodix HID-over-SPI driver
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240525/202405250219.FIZ8w81d-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240525/202405250219.FIZ8w81d-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405250219.FIZ8w81d-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/hid/hid-goodix.c:627:36: warning: 'goodix_spi_acpi_match' defined but not used [-Wunused-const-variable=]
627 | static const struct acpi_device_id goodix_spi_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~


vim +/goodix_spi_acpi_match +627 drivers/hid/hid-goodix.c

626
> 627 static const struct acpi_device_id goodix_spi_acpi_match[] = {
628 { "GXTS7986" },
629 { },
630 };
631 MODULE_DEVICE_TABLE(acpi, goodix_spi_acpi_match);
632

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