All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202201212032.lveet90a-lkp@intel.com> (raw)

[-- 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

                 reply	other threads:[~2022-01-21 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201212032.lveet90a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.