All of lore.kernel.org
 help / color / mirror / Atom feed
* [sailus-media-tree:metadata 22/106] drivers/media/i2c/og01a1b.c:767:32: error: passing argument 2 of 'og01a1b_set_format' from incompatible pointer type
@ 2026-03-20 12:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-20 12:39 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: oe-kbuild-all, linux-media

tree:   git://linuxtv.org/sailus/media_tree.git metadata
head:   7a108073e0c1f6e9035329a152d5835f9d4f9507
commit: ad5c2cba760033425f80420f0cf45a560a646d7e [22/106] media: v4l2-subdev: Add struct v4l2_subdev_client_info argument to pad ops
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260320/202603202019.logGbtI4-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260320/202603202019.logGbtI4-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/202603202019.logGbtI4-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> Warning: drivers/media/i2c/imx412.c:715 function parameter 'ci' not described in 'imx412_get_pad_format'
>> Warning: drivers/media/i2c/imx412.c:746 function parameter 'ci' not described in 'imx412_set_pad_format'
>> Warning: drivers/media/i2c/imx412.c:715 function parameter 'ci' not described in 'imx412_get_pad_format'
>> Warning: drivers/media/i2c/imx412.c:746 function parameter 'ci' not described in 'imx412_set_pad_format'
--
   drivers/media/i2c/og01a1b.c: In function 'og01a1b_init_state':
>> drivers/media/i2c/og01a1b.c:767:32: error: passing argument 2 of 'og01a1b_set_format' from incompatible pointer type [-Wincompatible-pointer-types]
     767 |         og01a1b_set_format(sd, state, &fmt);
         |                                ^~~~~
         |                                |
         |                                struct v4l2_subdev_state *
   drivers/media/i2c/og01a1b.c:680:69: note: expected 'const struct v4l2_subdev_client_info *' but argument is of type 'struct v4l2_subdev_state *'
     680 |                               const struct v4l2_subdev_client_info *ci,
         |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
   drivers/media/i2c/og01a1b.c:767:39: error: passing argument 3 of 'og01a1b_set_format' from incompatible pointer type [-Wincompatible-pointer-types]
     767 |         og01a1b_set_format(sd, state, &fmt);
         |                                       ^~~~
         |                                       |
         |                                       struct v4l2_subdev_format *
   drivers/media/i2c/og01a1b.c:681:57: note: expected 'struct v4l2_subdev_state *' but argument is of type 'struct v4l2_subdev_format *'
     681 |                               struct v4l2_subdev_state *sd_state,
         |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
>> drivers/media/i2c/og01a1b.c:767:9: error: too few arguments to function 'og01a1b_set_format'; expected 4, have 3
     767 |         og01a1b_set_format(sd, state, &fmt);
         |         ^~~~~~~~~~~~~~~~~~
   drivers/media/i2c/og01a1b.c:679:12: note: declared here
     679 | static int og01a1b_set_format(struct v4l2_subdev *sd,
         |            ^~~~~~~~~~~~~~~~~~
--
>> Warning: drivers/media/i2c/imx335.c:885 function parameter 'ci' not described in 'imx335_set_pad_format'
>> Warning: drivers/media/i2c/imx335.c:962 function parameter 'ci' not described in 'imx335_get_selection'
>> Warning: drivers/media/i2c/imx335.c:885 function parameter 'ci' not described in 'imx335_set_pad_format'
>> Warning: drivers/media/i2c/imx335.c:962 function parameter 'ci' not described in 'imx335_get_selection'
--
>> Warning: drivers/media/i2c/imx274.c:1075 function parameter 'ci' not described in 'imx274_get_fmt'
>> Warning: drivers/media/i2c/imx274.c:1098 function parameter 'ci' not described in 'imx274_set_fmt'
>> Warning: drivers/media/i2c/imx274.c:1075 function parameter 'ci' not described in 'imx274_get_fmt'
>> Warning: drivers/media/i2c/imx274.c:1098 function parameter 'ci' not described in 'imx274_set_fmt'
--
>> Warning: drivers/media/i2c/imx334.c:763 function parameter 'ci' not described in 'imx334_get_pad_format'
>> Warning: drivers/media/i2c/imx334.c:791 function parameter 'ci' not described in 'imx334_set_pad_format'
>> Warning: drivers/media/i2c/imx334.c:763 function parameter 'ci' not described in 'imx334_get_pad_format'
>> Warning: drivers/media/i2c/imx334.c:791 function parameter 'ci' not described in 'imx334_set_pad_format'
--
>> Warning: drivers/media/i2c/ov9282.c:794 function parameter 'ci' not described in 'ov9282_get_pad_format'
>> Warning: drivers/media/i2c/ov9282.c:822 function parameter 'ci' not described in 'ov9282_set_pad_format'
>> Warning: drivers/media/i2c/ov9282.c:794 function parameter 'ci' not described in 'ov9282_get_pad_format'
>> Warning: drivers/media/i2c/ov9282.c:822 function parameter 'ci' not described in 'ov9282_set_pad_format'
--
>> Warning: drivers/media/i2c/tvp514x.c:891 function parameter 'ci' not described in 'tvp514x_get_pad_format'
>> Warning: drivers/media/i2c/tvp514x.c:924 function parameter 'ci' not described in 'tvp514x_set_pad_format'
>> Warning: drivers/media/i2c/tvp514x.c:891 function parameter 'ci' not described in 'tvp514x_get_pad_format'
>> Warning: drivers/media/i2c/tvp514x.c:924 function parameter 'ci' not described in 'tvp514x_set_pad_format'
--
>> drivers/media/platform/renesas/vsp1/vsp1_entity.c:161:5: error: conflicting types for 'vsp1_subdev_get_pad_format'; have 'int(struct v4l2_subdev *, const struct v4l2_subdev_client_info *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)'
     161 | int vsp1_subdev_get_pad_format(struct v4l2_subdev *subdev,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/media/platform/renesas/vsp1/vsp1_entity.c:19:
   drivers/media/platform/renesas/vsp1/vsp1_entity.h:178:5: note: previous declaration of 'vsp1_subdev_get_pad_format' with type 'int(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)'
     178 | int vsp1_subdev_get_pad_format(struct v4l2_subdev *subdev,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/og01a1b_set_format +767 drivers/media/i2c/og01a1b.c

472377febf848a Shawn Tu           2022-02-15  752  
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  753  static int og01a1b_init_state(struct v4l2_subdev *sd,
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  754  			      struct v4l2_subdev_state *state)
472377febf848a Shawn Tu           2022-02-15  755  {
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  756  	struct og01a1b *og01a1b = to_og01a1b(sd);
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  757  	struct v4l2_subdev_format fmt = {
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  758  		.which = V4L2_SUBDEV_FORMAT_TRY,
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  759  		.pad = 0,
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  760  		.format = {
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  761  			.width = og01a1b->cur_mode->width,
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  762  			.height = og01a1b->cur_mode->height,
4369a7d34d649d Vladimir Zapolskiy 2026-02-26  763  			.code = og01a1b->code,
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  764  		},
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  765  	};
d935219d19daf1 Vladimir Zapolskiy 2026-02-26  766  
d935219d19daf1 Vladimir Zapolskiy 2026-02-26 @767  	og01a1b_set_format(sd, state, &fmt);
472377febf848a Shawn Tu           2022-02-15  768  
472377febf848a Shawn Tu           2022-02-15  769  	return 0;
472377febf848a Shawn Tu           2022-02-15  770  }
472377febf848a Shawn Tu           2022-02-15  771  

:::::: The code at line 767 was first introduced by commit
:::::: d935219d19daf1d43d116e14c253a17bb23cd480 media: i2c: og01a1b: Replace .open with .init_state internal ops

:::::: TO: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

-- 
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:[~2026-03-20 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 12:39 [sailus-media-tree:metadata 22/106] drivers/media/i2c/og01a1b.c:767:32: error: passing argument 2 of 'og01a1b_set_format' from incompatible pointer type 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.