All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:5.15/linux 10/62] drivers/media/i2c/kmb-lens.c:212:13: warning: variable 'new_pos' set but not used
@ 2022-01-21 12:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-21 12:54 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.15/linux
head:   719d8431f0cc54f9e54ee62dfd2f5354a6f879f7
commit: 0d5b79d80af57838bdb57ee7ad6d49d29c24e56d [10/62] media: kmb-lens: Add Keem Bay camera lens
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220121/202201212032.lveet90a-lkp(a)intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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
        # https://github.com/intel/linux-intel-lts/commit/0d5b79d80af57838bdb57ee7ad6d49d29c24e56d
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/media/i2c/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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 = container_of(work, struct kmb_lens,
   211							 work_iris);
 > 212		u32 new_pos;
   213	
   214		mutex_lock(&kmb_lens->lock);
   215		new_pos = 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-21 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-21 12:54 [intel-lts:5.15/linux 10/62] drivers/media/i2c/kmb-lens.c:212:13: warning: variable 'new_pos' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.