Linux Media Controller development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: [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
Date: Wed, 29 Apr 2026 16:28:45 +0800	[thread overview]
Message-ID: <202604291638.d493kmZ2-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-04-29  8:29 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=202604291638.d493kmZ2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakari.ailus@linux.intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox