lkml.org 
[lkml]   [2023]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/iio/accel/da280.c:181:36: warning: 'da280_acpi_match' defined but not used
Hi Luke,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f6feea56f66d34259c4222fa02e8171c4f2673d1
commit: 4c42bef0d3a1dd1a04d1f42c079f461cc1b139bc iio:accel:da280: Linx 820 Windows tablet has a da280 mapped via ACPI
date: 5 years ago
config: i386-buildonly-randconfig-r002-20230213 (https://download.01.org/0day-ci/archive/20230214/202302142222.vVU0E4eu-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4c42bef0d3a1dd1a04d1f42c079f461cc1b139bc
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4c42bef0d3a1dd1a04d1f42c079f461cc1b139bc
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash M=drivers/iio/accel

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302142222.vVU0E4eu-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/iio/accel/da280.c:181:36: warning: 'da280_acpi_match' defined but not used [-Wunused-const-variable=]
181 | static const struct acpi_device_id da280_acpi_match[] = {
| ^~~~~~~~~~~~~~~~


vim +/da280_acpi_match +181 drivers/iio/accel/da280.c

180
> 181 static const struct acpi_device_id da280_acpi_match[] = {
182 {"MIRAACC", da280},
183 {},
184 };
185 MODULE_DEVICE_TABLE(acpi, da280_acpi_match);
186

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

\
 
 \ /
  Last update: 2023-03-27 00:21    [W:0.956 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site