[andersson:wip/sc8180x-next-20220502 2/29] drivers/usb/typec/ucsi/ucsi_glink.c:622:34: warning: unused variable 'ucsi_glink_of_match'

From: kernel test robot
Date: Wed May 04 2022 - 05:55:37 EST


tree: https://github.com/andersson/kernel wip/sc8180x-next-20220502
head: 6199153320a3b7d1dce23ad1ea4d894a86793cb6
commit: be6dcf10ab84d8bb9ec872791f28b2724996fc32 [2/29] pmic_glink: Add UCSI/PAN prototype
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20220504/202205041711.8Ka8RUyq-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 363b3a645a1e30011cc8da624f13dac5fd915628)
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/be6dcf10ab84d8bb9ec872791f28b2724996fc32
git remote add andersson https://github.com/andersson/kernel
git fetch --no-tags andersson wip/sc8180x-next-20220502
git checkout be6dcf10ab84d8bb9ec872791f28b2724996fc32
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/msm/ drivers/usb/typec/ucsi/

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

All warnings (new ones prefixed by >>):

>> drivers/usb/typec/ucsi/ucsi_glink.c:622:34: warning: unused variable 'ucsi_glink_of_match' [-Wunused-const-variable]
static const struct of_device_id ucsi_glink_of_match[] = {
^
1 warning generated.


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
https://01.org/lkp