[jsarha:topic/cros-sof-v4.19 923/6555] drivers/soc/qcom/qcom_gsbi.c:125:34: warning: 'tcsr_dt_match' defined but not used

From: kernel test robot
Date: Sat Jul 23 2022 - 22:36:36 EST


tree: https://github.com/jsarha/linux topic/cros-sof-v4.19
head: d7a3e91d8d16d1ef8653deec5a1fffc4de034a0c
commit: cb830e93e29574f6eae7ecd6f709905e15c245cb [923/6555] UPSTREAM: soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs
config: i386-buildonly-randconfig-r004-20220718 (https://download.01.org/0day-ci/archive/20220724/202207241059.TJ6DBg9u-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/jsarha/linux/commit/cb830e93e29574f6eae7ecd6f709905e15c245cb
git remote add jsarha https://github.com/jsarha/linux
git fetch --no-tags jsarha topic/cros-sof-v4.19
git checkout cb830e93e29574f6eae7ecd6f709905e15c245cb
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mailbox/ drivers/soc/qcom/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/soc/qcom/qcom_gsbi.c:125:34: warning: 'tcsr_dt_match' defined but not used [-Wunused-const-variable=]
125 | static const struct of_device_id tcsr_dt_match[] = {
| ^~~~~~~~~~~~~


vim +/tcsr_dt_match +125 drivers/soc/qcom/qcom_gsbi.c

e5fdad68d47ed3 Andy Gross 2015-02-09 124
e5fdad68d47ed3 Andy Gross 2015-02-09 @125 static const struct of_device_id tcsr_dt_match[] = {
e5fdad68d47ed3 Andy Gross 2015-02-09 126 { .compatible = "qcom,tcsr-ipq8064", .data = &config_ipq8064},
e5fdad68d47ed3 Andy Gross 2015-02-09 127 { .compatible = "qcom,tcsr-apq8064", .data = &config_apq8064},
e5fdad68d47ed3 Andy Gross 2015-02-09 128 { .compatible = "qcom,tcsr-msm8960", .data = &config_msm8960},
e5fdad68d47ed3 Andy Gross 2015-02-09 129 { .compatible = "qcom,tcsr-msm8660", .data = &config_msm8660},
e5fdad68d47ed3 Andy Gross 2015-02-09 130 { },
fa9eb3241895d2 Srinivas Kandagatla 2014-09-23 131 };
fa9eb3241895d2 Srinivas Kandagatla 2014-09-23 132

:::::: The code at line 125 was first introduced by commit
:::::: e5fdad68d47ed344832b7ca4e18b2e9708d8141e soc: qcom: gsbi: Add support for ADM CRCI muxing

:::::: TO: Andy Gross <agross@xxxxxxxxxxxxxx>
:::::: CC: Kumar Gala <galak@xxxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp