All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:5.10/yocto 10656/20136] drivers/media/i2c/lt6911uxc.c:238:32: warning: unused variable 'lt6911uxc_ev_source_change'
@ 2021-12-31  7:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-31  7:42 UTC (permalink / raw)
  To: kbuild-all

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

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

only message in thread, other threads:[~2021-12-31  7:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-31  7:42 [intel-lts:5.10/yocto 10656/20136] drivers/media/i2c/lt6911uxc.c:238:32: warning: unused variable 'lt6911uxc_ev_source_change' 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.