lkml.org 
[lkml]   [2023]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/spi/spi-rockchip.c:891:34: warning: 'rockchip_spi_dt_match' defined but not used
Hi Axel,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aea6bf908d730b01bd264a8821159db9463c111c
commit: 46cb41534a1a1d1f75aae5eab0dd8c06a9461e6b spi: Drop unnecessary dependencies on relaxed I/O accessors
date: 8 years ago
config: i386-buildonly-randconfig-005-20231101 (https://download.01.org/0day-ci/archive/20231105/202311051312.XPufwrD5-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/20231105/202311051312.XPufwrD5-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/202311051312.XPufwrD5-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/spi/spi-rockchip.c:891:34: warning: 'rockchip_spi_dt_match' defined but not used [-Wunused-const-variable=]
891 | static const struct of_device_id rockchip_spi_dt_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~


vim +/rockchip_spi_dt_match +891 drivers/spi/spi-rockchip.c

64e36824b32b06 addy ke 2014-07-01 890
64e36824b32b06 addy ke 2014-07-01 @891 static const struct of_device_id rockchip_spi_dt_match[] = {
64e36824b32b06 addy ke 2014-07-01 892 { .compatible = "rockchip,rk3066-spi", },
b839b785182497 Addy Ke 2014-07-11 893 { .compatible = "rockchip,rk3188-spi", },
b839b785182497 Addy Ke 2014-07-11 894 { .compatible = "rockchip,rk3288-spi", },
9b7a56221590ca Xu Jianqun 2016-02-18 895 { .compatible = "rockchip,rk3399-spi", },
64e36824b32b06 addy ke 2014-07-01 896 { },
64e36824b32b06 addy ke 2014-07-01 897 };
64e36824b32b06 addy ke 2014-07-01 898 MODULE_DEVICE_TABLE(of, rockchip_spi_dt_match);
64e36824b32b06 addy ke 2014-07-01 899

:::::: The code at line 891 was first introduced by commit
:::::: 64e36824b32b061a9537dc2e026977806f75846f spi/rockchip: add driver for Rockchip RK3xxx SoCs integrated SPI

:::::: TO: addy ke <addy.ke@rock-chips.com>
:::::: CC: Mark Brown <broonie@linaro.org>

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

\
 
 \ /
  Last update: 2023-11-20 13:48    [W:6.553 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site