public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-02-06 17:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-06 17:21 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: llvm, oe-kbuild-all, linux-media

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

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

only message in thread, other threads:[~2026-02-06 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06 17:21 [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 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