public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-media@vger.kernel.org
Subject: [sailus-media-tree:metadata-pre 11/13] drivers/media/platform/nxp/imx7-media-csi.c:1415:8: error: too few arguments to function call, expected 4, have 3
Date: Sat, 07 Feb 2026 01:21:06 +0800	[thread overview]
Message-ID: <202602070139.HB5ypt6u-lkp@intel.com> (raw)

tree:   git://linuxtv.org/sailus/media_tree.git metadata-pre
head:   1b58854744d17413b2855b20178e63a1c82d58f5
commit: e7ba02736fa5365cfe31dfd34c5557f10c4348fa [11/13] media: v4l2-subdev: Add struct v4l2_subdev_client_info pointer to pad ops
config: hexagon-randconfig-002-20260206 (https://download.01.org/0day-ci/archive/20260207/202602070139.HB5ypt6u-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260207/202602070139.HB5ypt6u-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/202602070139.HB5ypt6u-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/media/platform/nxp/imx7-media-csi.c:1415:8: error: too few arguments to function call, expected 4, have 3
    1415 |         ret = v4l2_subdev_call_state_active(&csi->sd, pad, get_fmt, &fmt_src);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:1939:14: note: expanded from macro 'v4l2_subdev_call_state_active'
    1939 |                 __result = v4l2_subdev_call(sd, o, f, state, ##args);   \
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:1909:20: note: expanded from macro 'v4l2_subdev_call'
    1908 |                         __result = v4l2_subdev_call_wrappers.o->f(      \
         |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1909 |                                                         __sd, ##args);  \
         |                                                                     ^
>> drivers/media/platform/nxp/imx7-media-csi.c:1415:8: error: too few arguments to function call, expected 4, have 3
    1415 |         ret = v4l2_subdev_call_state_active(&csi->sd, pad, get_fmt, &fmt_src);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:1939:14: note: expanded from macro 'v4l2_subdev_call_state_active'
    1939 |                 __result = v4l2_subdev_call(sd, o, f, state, ##args);   \
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:1911:43: note: expanded from macro 'v4l2_subdev_call'
    1911 |                         __result = __sd->ops->o->f(__sd, ##args);       \
         |                                    ~~~~~~~~~~~~~~~             ^
   drivers/media/platform/nxp/imx7-media-csi.c:2024:13: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, const struct v4l2_subdev_client_info *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' with an expression of type 'int (struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' [-Wincompatible-function-pointer-types]
    2024 |         .set_fmt        = imx7_csi_set_fmt,
         |                           ^~~~~~~~~~~~~~~~
   3 errors generated.


vim +1415 drivers/media/platform/nxp/imx7-media-csi.c

01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1404  
31959b981c231fd drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1405  static int imx7_csi_video_validate_fmt(struct imx7_csi *csi)
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1406  {
d01a1c30777e46b drivers/media/platform/nxp/imx7-media-csi.c Laurent Pinchart 2023-01-26  1407  	struct v4l2_subdev_format fmt_src = {
d01a1c30777e46b drivers/media/platform/nxp/imx7-media-csi.c Laurent Pinchart 2023-01-26  1408  		.pad = IMX7_CSI_PAD_SRC,
d01a1c30777e46b drivers/media/platform/nxp/imx7-media-csi.c Laurent Pinchart 2023-01-26  1409  		.which = V4L2_SUBDEV_FORMAT_ACTIVE,
d01a1c30777e46b drivers/media/platform/nxp/imx7-media-csi.c Laurent Pinchart 2023-01-26  1410  	};
e352833d32e6932 drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1411  	const struct imx7_csi_pixfmt *cc;
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1412  	int ret;
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1413  
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1414  	/* Retrieve the media bus format on the source subdev. */
1d59fbeb37a70f3 drivers/media/platform/nxp/imx7-media-csi.c Laurent Pinchart 2023-01-26 @1415  	ret = v4l2_subdev_call_state_active(&csi->sd, pad, get_fmt, &fmt_src);
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1416  	if (ret)
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1417  		return ret;
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1418  
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1419  	/*
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1420  	 * Verify that the media bus size matches the size set on the video
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1421  	 * node. It is sufficient to check the compose rectangle size without
084158200fda600 drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1422  	 * checking the rounded size from pix_fmt, as the rounded size is
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1423  	 * derived directly from the compose rectangle size, and will thus
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1424  	 * always match if the compose rectangle matches.
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1425  	 */
084158200fda600 drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1426  	if (csi->vdev_compose.width != fmt_src.format.width ||
084158200fda600 drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1427  	    csi->vdev_compose.height != fmt_src.format.height)
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1428  		return -EPIPE;
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1429  
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1430  	/*
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1431  	 * Verify that the media bus code is compatible with the pixel format
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1432  	 * set on the video node.
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1433  	 */
2d35c1ff83c0951 drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-10  1434  	cc = imx7_csi_find_mbus_format(fmt_src.format.code);
a61bfe662591ad2 drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-10  1435  	if (!cc || csi->vdev_cc->yuv != cc->yuv)
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1436  		return -EPIPE;
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1437  
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1438  	return 0;
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1439  }
01ac6b7542872ec drivers/staging/media/imx/imx7-media-csi.c  Laurent Pinchart 2022-05-09  1440  

:::::: The code at line 1415 was first introduced by commit
:::::: 1d59fbeb37a70f36ba3f03e41128515eee59f5fb media: imx: imx7-media-csi: Use V4L2 subdev active state

:::::: TO: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@kernel.org>

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

                 reply	other threads:[~2026-02-06 17:22 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=202602070139.HB5ypt6u-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --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