drivers/media/cec/platform/tegra/tegra_cec.c:455:34: warning: unused variable 'tegra_cec_of_match'

From: kernel test robot
Date: Tue Aug 18 2020 - 08:07:35 EST


Hi Mauro,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: df823a8208c434eee6e4e9aa016c956d0968e2e2 media: cec: rename CEC platform drivers config options
date: 4 months ago
config: x86_64-randconfig-r006-20200818 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 790878f291fa5dc58a1c560cb6cc76fd1bfd1c5a)
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
git checkout df823a8208c434eee6e4e9aa016c956d0968e2e2
# 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/media/cec/platform/tegra/tegra_cec.c:455:34: warning: unused variable 'tegra_cec_of_match' [-Wunused-const-variable]
static const struct of_device_id tegra_cec_of_match[] = {
^
1 warning generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df823a8208c434eee6e4e9aa016c956d0968e2e2
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout df823a8208c434eee6e4e9aa016c956d0968e2e2
vim +/tegra_cec_of_match +455 drivers/media/cec/platform/tegra/tegra_cec.c

9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 454
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 @455 static const struct of_device_id tegra_cec_of_match[] = {
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 456 { .compatible = "nvidia,tegra114-cec", },
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 457 { .compatible = "nvidia,tegra124-cec", },
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 458 { .compatible = "nvidia,tegra210-cec", },
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 459 {},
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 460 };
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 461

:::::: The code at line 455 was first introduced by commit
:::::: 9d2d60687c9a0621e0da40338be4cbd7e3783be2 media: tegra-cec: add Tegra HDMI CEC driver

:::::: TO: Hans Verkuil <hans.verkuil@xxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip