Linux Media Controller development
 help / color / mirror / Atom feed
* [sailus-media-tree:metadata 91/122] drivers/media/i2c/imx219.c:982:24: error: too many arguments to function 'v4l2_subdev_get_fmt'; expected 3, have 4
@ 2026-04-29  8:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-29  8:28 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: oe-kbuild-all, linux-media, Laurent Pinchart

tree:   git://linuxtv.org/sailus/media_tree.git metadata
head:   489ab6e79288be8d219b68525a13699fde0248ae
commit: 0a4acc9d6279bb839202e8731d03c772e7cb0291 [91/122] media: imx219: Add internal pads, routes for common raw sensor model
config: openrisc-allmodconfig (https://download.01.org/0day-ci/archive/20260429/202604291638.d493kmZ2-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260429/202604291638.d493kmZ2-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/202604291638.d493kmZ2-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/media/i2c/imx219.c: In function 'imx219_set_pad_format':
   drivers/media/i2c/imx219.c:982:48: error: passing argument 2 of 'v4l2_subdev_get_fmt' from incompatible pointer type [-Wincompatible-pointer-types]
     982 |                 return v4l2_subdev_get_fmt(sd, ci, state, fmt);
         |                                                ^~
         |                                                |
         |                                                const struct v4l2_subdev_client_info *
   In file included from include/media/v4l2-device.h:13,
                    from drivers/media/i2c/imx219.c:28:
   include/media/v4l2-subdev.h:1477:75: note: expected 'struct v4l2_subdev_state *' but argument is of type 'const struct v4l2_subdev_client_info *'
    1477 | int v4l2_subdev_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state,
         |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   drivers/media/i2c/imx219.c:982:52: error: passing argument 3 of 'v4l2_subdev_get_fmt' from incompatible pointer type [-Wincompatible-pointer-types]
     982 |                 return v4l2_subdev_get_fmt(sd, ci, state, fmt);
         |                                                    ^~~~~
         |                                                    |
         |                                                    struct v4l2_subdev_state *
   include/media/v4l2-subdev.h:1478:52: note: expected 'struct v4l2_subdev_format *' but argument is of type 'struct v4l2_subdev_state *'
    1478 |                         struct v4l2_subdev_format *format);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
>> drivers/media/i2c/imx219.c:982:24: error: too many arguments to function 'v4l2_subdev_get_fmt'; expected 3, have 4
     982 |                 return v4l2_subdev_get_fmt(sd, ci, state, fmt);
         |                        ^~~~~~~~~~~~~~~~~~~                ~~~
   include/media/v4l2-subdev.h:1477:5: note: declared here
    1477 | int v4l2_subdev_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state,
         |     ^~~~~~~~~~~~~~~~~~~


vim +/v4l2_subdev_get_fmt +982 drivers/media/i2c/imx219.c

   969	
   970	static int imx219_set_pad_format(struct v4l2_subdev *sd,
   971					 const struct v4l2_subdev_client_info *ci,
   972					 struct v4l2_subdev_state *state,
   973					 struct v4l2_subdev_format *fmt)
   974	{
   975		struct imx219 *imx219 = to_imx219(sd);
   976		struct v4l2_mbus_framefmt *format;
   977	
   978		if (!(ci && ci->client_caps & V4L2_SUBDEV_CLIENT_CAP_COMMON_RAW_SENSOR))
   979			return imx219_set_pad_format_compat(sd, state, fmt);
   980	
   981		if (fmt->pad != IMX219_PAD_SOURCE)
 > 982			return v4l2_subdev_get_fmt(sd, ci, state, fmt);
   983	
   984		format = v4l2_subdev_state_get_format(state, IMX219_PAD_SOURCE);
   985	
   986		format->code = fmt->format.code =
   987			imx219_get_format_code(imx219, fmt->format.code);
   988	
   989		return 0;
   990	}
   991	

-- 
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-04-29  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29  8:28 [sailus-media-tree:metadata 91/122] drivers/media/i2c/imx219.c:982:24: error: too many arguments to function 'v4l2_subdev_get_fmt'; expected 3, have 4 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox