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.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	[thread overview]
Message-ID: <202112311545.pbu2p1Ag-lkp@intel.com> (raw)

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

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: lt6911uxc:add sensor driver
config: arm-randconfig-r003-20211123 (https://download.01.org/0day-ci/archive/20211231/202112311545.pbu2p1Ag-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/intel/linux-intel-lts/commit/367a342a05c249be8a0ea5e9d1e9dd5669a02abf
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        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=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm 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/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 prior initialization of this subobject [-Winitializer-overrides]
           .s_stream       = lt6911uxc_set_stream,
                             ^~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/lt6911uxc.c:1134:14: note: previous initialization is here
           .s_stream = lt6911uxc_set_stream,
                       ^~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/lt6911uxc.c:116:31: warning: unused variable 'default_timing' [-Wunused-variable]
   static struct v4l2_dv_timings default_timing = V4L2_DV_BT_CEA_3840X2160P30;
                                 ^
>> drivers/media/i2c/lt6911uxc.c:238:32: warning: unused variable 'lt6911uxc_ev_source_change' [-Wunused-const-variable]
   static const struct v4l2_event lt6911uxc_ev_source_change = {
                                  ^
   drivers/media/i2c/lt6911uxc.c:468:12: warning: unused function 'lt6911uxc_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 'lt6911uxc_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 = {
   239		.type = V4L2_EVENT_SOURCE_CHANGE,
   240		.u.src_change.changes = 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

                 reply	other threads:[~2021-12-31  7:42 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=202112311545.pbu2p1Ag-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.