From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1376625921442801201==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [intel-lts:5.10/yocto 10656/20136] drivers/media/i2c/lt6911uxc.c:238:32: warning: unused variable 'lt6911uxc_ev_source_change' Date: Fri, 31 Dec 2021 15:42:28 +0800 Message-ID: <202112311545.pbu2p1Ag-lkp@intel.com> List-Id: --===============1376625921442801201== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ng, FYI, the error/warning still remains. tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto head: a5d0f27b67d05c962c648e7c913a41c9b34c9853 commit: 367a342a05c249be8a0ea5e9d1e9dd5669a02abf [10656/20136] media: lt691= 1uxc:add sensor driver config: arm-randconfig-r003-20211123 (https://download.01.org/0day-ci/archi= ve/20211231/202112311545.pbu2p1Ag-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb= 321f7ca6083ce15b6aa5bf89de6600e649) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel/linux-intel-lts/commit/367a342a05c249be8= a0ea5e9d1e9dd5669a02abf git remote add intel-lts https://github.com/intel/linux-intel-lts.g= it git fetch --no-tags intel-lts 5.10/yocto git checkout 367a342a05c249be8a0ea5e9d1e9dd5669a02abf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash drivers/media/i2c/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/media/i2c/lt6911uxc.c:722:6: warning: variable 'hblank' set but = not used [-Wunused-but-set-variable] s64 hblank; ^ drivers/media/i2c/lt6911uxc.c:1140:14: warning: initializer overrides pr= ior initialization of this subobject [-Winitializer-overrides] .s_stream =3D lt6911uxc_set_stream, ^~~~~~~~~~~~~~~~~~~~ drivers/media/i2c/lt6911uxc.c:1134:14: note: previous initialization is = here .s_stream =3D lt6911uxc_set_stream, ^~~~~~~~~~~~~~~~~~~~ drivers/media/i2c/lt6911uxc.c:116:31: warning: unused variable 'default_= timing' [-Wunused-variable] static struct v4l2_dv_timings default_timing =3D V4L2_DV_BT_CEA_3840X216= 0P30; ^ >> drivers/media/i2c/lt6911uxc.c:238:32: warning: unused variable 'lt6911ux= c_ev_source_change' [-Wunused-const-variable] static const struct v4l2_event lt6911uxc_ev_source_change =3D { ^ drivers/media/i2c/lt6911uxc.c:468:12: warning: unused function 'lt6911ux= c_s_dv_timings' [-Wunused-function] static int lt6911uxc_s_dv_timings(struct v4l2_subdev *sd, ^ drivers/media/i2c/lt6911uxc.c:499:12: warning: unused function 'lt6911ux= c_query_dv_timings' [-Wunused-function] static int lt6911uxc_query_dv_timings(struct v4l2_subdev *sd, ^ 6 warnings generated. vim +/lt6911uxc_ev_source_change +238 drivers/media/i2c/lt6911uxc.c 237 = > 238 static const struct v4l2_event lt6911uxc_ev_source_change =3D { 239 .type =3D V4L2_EVENT_SOURCE_CHANGE, 240 .u.src_change.changes =3D V4L2_EVENT_SRC_CH_RESOLUTION, 241 }; 242 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1376625921442801201==--