[andersson:wip/sc8180x-next-20211015 3/61] drivers/usb/typec/ucsi/ucsi_glink.c:622:34: error: 'ucsi_glink_of_match' defined but not used
From: kernel test robot
Date: Tue Oct 26 2021 - 20:41:31 EST
tree: https://github.com/andersson/kernel wip/sc8180x-next-20211015
head: 05163e0a8999f011f055a2a0e4d094841b55bc1e
commit: 4db2bbaac8fa0a84aef3929ac3e2e6a70eb5239a [3/61] pmic_glink: Add UCSI/PAN prototype
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/andersson/kernel/commit/4db2bbaac8fa0a84aef3929ac3e2e6a70eb5239a
git remote add andersson https://github.com/andersson/kernel
git fetch --no-tags andersson wip/sc8180x-next-20211015
git checkout 4db2bbaac8fa0a84aef3929ac3e2e6a70eb5239a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
>> drivers/usb/typec/ucsi/ucsi_glink.c:622:34: error: 'ucsi_glink_of_match' defined but not used [-Werror=unused-const-variable=]
622 | static const struct of_device_id ucsi_glink_of_match[] = {
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/ucsi_glink_of_match +622 drivers/usb/typec/ucsi/ucsi_glink.c
621
> 622 static const struct of_device_id ucsi_glink_of_match[] = {
623 { .compatible = "qcom,glink-ucsi", },
624 {}
625 };
626 //MODULE_DEVICE_TABLE(of, ucsi_glink_of_match);
627
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip