drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:457:34: warning: unused variable 'rockchip_dp_dt_ids'

From: kernel test robot
Date: Fri Jun 25 2021 - 03:41:41 EST


Hi Robin,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 44db63d1ad8d71c6932cbe007eb41f31c434d140
commit: b4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248 iommu: Tidy up Kconfig for SoC IOMMUs
date: 12 months ago
config: x86_64-randconfig-r012-20210625 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9ca0171a9ffdef5fdb1511d197a3fd72490362de)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

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/gpu/drm/rockchip/analogix_dp-rockchip.c:457:34: warning: unused variable 'rockchip_dp_dt_ids' [-Wunused-const-variable]
static const struct of_device_id rockchip_dp_dt_ids[] = {
^
1 warning generated.
--
>> drivers/gpu/drm/rockchip/cdn-dp-core.c:54:34: warning: unused variable 'cdn_dp_dt_ids' [-Wunused-const-variable]
static const struct of_device_id cdn_dp_dt_ids[] = {
^
drivers/gpu/drm/rockchip/cdn-dp-core.c:1123:12: warning: unused function 'cdn_dp_resume' [-Wunused-function]
static int cdn_dp_resume(struct device *dev)
^
2 warnings generated.


vim +/rockchip_dp_dt_ids +457 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c

d9c900b0270a18 Yakir Yang 2016-06-29 456
9e32e16e9e989f Yakir Yang 2016-03-29 @457 static const struct of_device_id rockchip_dp_dt_ids[] = {
d9c900b0270a18 Yakir Yang 2016-06-29 458 {.compatible = "rockchip,rk3288-dp", .data = &rk3288_dp },
82872e42bb1501 Yakir Yang 2016-06-29 459 {.compatible = "rockchip,rk3399-edp", .data = &rk3399_edp },
9e32e16e9e989f Yakir Yang 2016-03-29 460 {}
9e32e16e9e989f Yakir Yang 2016-03-29 461 };
9e32e16e9e989f Yakir Yang 2016-03-29 462 MODULE_DEVICE_TABLE(of, rockchip_dp_dt_ids);
9e32e16e9e989f Yakir Yang 2016-03-29 463

:::::: The code at line 457 was first introduced by commit
:::::: 9e32e16e9e989f2c4a11b377c5ed3e1c7be16cfb drm: rockchip: dp: add rockchip platform dp driver

:::::: TO: Yakir Yang <ykk@xxxxxxxxxxxxxx>
:::::: CC: Yakir Yang <ykk@xxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip