From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8911084207126287345==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [intel-lts:5.15/linux 10/62] drivers/media/i2c/kmb-lens.c:212:13: warning: variable 'new_pos' set but not used Date: Fri, 21 Jan 2022 20:54:12 +0800 Message-ID: <202201212032.lveet90a-lkp@intel.com> List-Id: --===============8911084207126287345== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/intel/linux-intel-lts.git 5.15/linux head: 719d8431f0cc54f9e54ee62dfd2f5354a6f879f7 commit: 0d5b79d80af57838bdb57ee7ad6d49d29c24e56d [10/62] media: kmb-lens: A= dd Keem Bay camera lens config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/2022012= 1/202201212032.lveet90a-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 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 # https://github.com/intel/linux-intel-lts/commit/0d5b79d80af57838b= db57ee7ad6d49d29c24e56d git remote add intel-lts https://github.com/intel/linux-intel-lts.g= it git fetch --no-tags intel-lts 5.15/linux git checkout 0d5b79d80af57838bdb57ee7ad6d49d29c24e56d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha 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/kmb-lens.c: In function 'kmb_lens_move_iris': >> drivers/media/i2c/kmb-lens.c:212:13: warning: variable 'new_pos' set but= not used [-Wunused-but-set-variable] 212 | u32 new_pos; | ^~~~~~~ vim +/new_pos +212 drivers/media/i2c/kmb-lens.c 207 = 208 static void kmb_lens_move_iris(struct work_struct *work) 209 { 210 struct kmb_lens *kmb_lens =3D container_of(work, struct kmb_lens, 211 work_iris); > 212 u32 new_pos; 213 = 214 mutex_lock(&kmb_lens->lock); 215 new_pos =3D kmb_lens->iris_new_pos; 216 mutex_unlock(&kmb_lens->lock); 217 = 218 kmb_iris_control(kmb_lens, kmb_lens->iris_new_pos); 219 } 220 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8911084207126287345==--