All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:4.14/base 6210/28962] drivers/media/platform/video-sensor-stub.c:82:31: warning: 'sensor_supported_codes' defined but not used
@ 2023-08-14 17:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-14 17:48 UTC (permalink / raw)
  To: Bandi, Kushal; +Cc: oe-kbuild-all

tree:   https://github.com/intel/linux-intel-lts.git 4.14/base
head:   65b8aaa4ae7a568d08d64eeee7b09f26f711c78f
commit: f2c4233e588a3be9b02b6858aeb0b2beb42df511 [6210/28962] pci:intel: Upgrading IPU to mr4_beta_20180506 FW release
config: i386-randconfig-r081-20230814 (https://download.01.org/0day-ci/archive/20230815/202308150130.ZD9DsLwt-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce: (https://download.01.org/0day-ci/archive/20230815/202308150130.ZD9DsLwt-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308150130.ZD9DsLwt-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/media/platform/video-sensor-stub.c:124:32: sparse: sparse: undefined identifier 'v4l2_subdev_get_try_format'
   drivers/media/platform/video-sensor-stub.c:166:17: sparse: sparse: undefined identifier 'v4l2_subdev_get_try_format'
   drivers/media/platform/video-sensor-stub.c:290:50: sparse: sparse: no member 'entity' in struct v4l2_subdev
   drivers/media/platform/video-sensor-stub.c:304:41: sparse: sparse: no member 'entity' in struct v4l2_subdev
   drivers/media/platform/video-sensor-stub.c: In function '__stub_get_format':
   drivers/media/platform/video-sensor-stub.c:124:18: error: implicit declaration of function 'v4l2_subdev_get_try_format'; did you mean 'v4l2_subdev_notify_event'? [-Werror=implicit-function-declaration]
      fmt->format = *v4l2_subdev_get_try_format(subdev,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     v4l2_subdev_notify_event
   drivers/media/platform/video-sensor-stub.c:124:17: error: invalid type argument of unary '*' (have 'int')
      fmt->format = *v4l2_subdev_get_try_format(subdev,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             cfg, fmt->pad);
             ~~~~~~~~~~~~~~
   drivers/media/platform/video-sensor-stub.c: In function 'stub_open':
   drivers/media/platform/video-sensor-stub.c:166:40: error: 'struct v4l2_subdev_fh' has no member named 'pad'
      v4l2_subdev_get_try_format(subdev, fh->pad, 0);
                                           ^~
   drivers/media/platform/video-sensor-stub.c: In function 'sensor_stub_probe':
   drivers/media/platform/video-sensor-stub.c:290:43: error: 'struct v4l2_subdev' has no member named 'entity'
     rval = media_entity_pads_init(&sensor->sd.entity, 1, &sensor->pad);
                                              ^
   drivers/media/platform/video-sensor-stub.c: In function 'sensor_stub_remove':
   drivers/media/platform/video-sensor-stub.c:304:34: error: 'struct v4l2_subdev' has no member named 'entity'
     media_entity_cleanup(&sensor->sd.entity);
                                     ^
   At top level:
   drivers/media/platform/video-sensor-stub.c:245:35: warning: 'ipu_isys_sensor_ctrl_ops' defined but not used [-Wunused-const-variable=]
    static const struct v4l2_ctrl_ops ipu_isys_sensor_ctrl_ops = {
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/video-sensor-stub.c:82:31: warning: 'sensor_supported_codes' defined but not used [-Wunused-const-variable=]
    static const uint32_t * const sensor_supported_codes[] = {
                                  ^~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/video-sensor-stub.c:58:27: warning: 'pixel_order_str' defined but not used [-Wunused-const-variable=]
    static const char * const pixel_order_str[] = { "GRBG", "RGGB", "BGGR", "GBRG" };
                              ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   drivers/media/platform/video-sensor-stub.c: In function '__stub_get_format':
   drivers/media/platform/video-sensor-stub.c:124:18: error: implicit declaration of function 'v4l2_subdev_get_try_format'; did you mean 'v4l2_subdev_notify_event'? [-Werror=implicit-function-declaration]
      fmt->format = *v4l2_subdev_get_try_format(subdev,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     v4l2_subdev_notify_event
   drivers/media/platform/video-sensor-stub.c:124:17: error: invalid type argument of unary '*' (have 'int')
      fmt->format = *v4l2_subdev_get_try_format(subdev,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             cfg, fmt->pad);
             ~~~~~~~~~~~~~~
   drivers/media/platform/video-sensor-stub.c: In function 'stub_open':
   drivers/media/platform/video-sensor-stub.c:166:40: error: 'struct v4l2_subdev_fh' has no member named 'pad'
      v4l2_subdev_get_try_format(subdev, fh->pad, 0);
                                           ^~
   drivers/media/platform/video-sensor-stub.c: In function 'sensor_stub_probe':
   drivers/media/platform/video-sensor-stub.c:290:43: error: 'struct v4l2_subdev' has no member named 'entity'
     rval = media_entity_pads_init(&sensor->sd.entity, 1, &sensor->pad);
                                              ^
   drivers/media/platform/video-sensor-stub.c: In function 'sensor_stub_remove':
   drivers/media/platform/video-sensor-stub.c:304:34: error: 'struct v4l2_subdev' has no member named 'entity'
     media_entity_cleanup(&sensor->sd.entity);
                                     ^
   At top level:
   drivers/media/platform/video-sensor-stub.c:245:35: warning: 'ipu_isys_sensor_ctrl_ops' defined but not used [-Wunused-const-variable=]
    static const struct v4l2_ctrl_ops ipu_isys_sensor_ctrl_ops = {
                                      ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/video-sensor-stub.c:82:31: warning: 'sensor_supported_codes' defined but not used [-Wunused-const-variable=]
    static const uint32_t * const sensor_supported_codes[] = {
                                  ^~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/video-sensor-stub.c:58:27: warning: 'pixel_order_str' defined but not used [-Wunused-const-variable=]
    static const char * const pixel_order_str[] = { "GRBG", "RGGB", "BGGR", "GBRG" };
                              ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/sensor_supported_codes +82 drivers/media/platform/video-sensor-stub.c

    80	
    81	
  > 82	static const uint32_t * const sensor_supported_codes[] = {
    83		sensor_supported_codes_pad,
    84	};
    85	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-08-14 17:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-14 17:48 [intel-lts:4.14/base 6210/28962] drivers/media/platform/video-sensor-stub.c:82:31: warning: 'sensor_supported_codes' defined 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.