[hverkuil-media-tree:hdcp 4/4] drivers/media/i2c/adv7604.c:2884:38: warning: unused variable 'adv7604_ctrl_hdcp_auth'

From: kernel test robot
Date: Wed Aug 10 2022 - 17:34:42 EST


tree: git://linuxtv.org/hverkuil/media_tree.git hdcp
head: da521c491aa5d01b7a920ef66c8d9aef36f14a02
commit: da521c491aa5d01b7a920ef66c8d9aef36f14a02 [4/4] Added HDCP support for ADV7604
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220811/202208110500.zRUW89QJ-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520)
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
git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media-tree hdcp
git checkout da521c491aa5d01b7a920ef66c8d9aef36f14a02
# 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=i386 SHELL=/bin/bash drivers/media/i2c/

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/media/i2c/adv7604.c:2884:38: warning: unused variable 'adv7604_ctrl_hdcp_auth' [-Wunused-const-variable]
static const struct v4l2_ctrl_config adv7604_ctrl_hdcp_auth = {
^
1 warning generated.


vim +/adv7604_ctrl_hdcp_auth +2884 drivers/media/i2c/adv7604.c

2883
> 2884 static const struct v4l2_ctrl_config adv7604_ctrl_hdcp_auth = {
2885 .ops = NULL,
2886 .id = V4L2_CID_DV_HDCP_RX_AUTH,
2887 .name = "HDCP Authentication Status",
2888 .type = V4L2_CTRL_TYPE_BITMASK,
2889 .min = 0,
2890 .max = 1,
2891 .step = 0,
2892 .def = 0,
2893 .flags = V4L2_CTRL_FLAG_READ_ONLY
2894 };
2895

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