drivers/media/pci/intel/ivsc/mei_csi.c:342:10: error: call to undeclared function 'v4l2_subdev_get_try_format'; ISO C99 and later do not support implicit function declarations
Subsystems (2)
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ef66bf8aeb91fd331cf8f5dca8f9d7bca9ab2849 commit: 29006e196a5661d9afc8152fa2bf8a5347ac17b4 [9402/10518] media: pci: intel: ivsc: Add CSI submodule config: x86_64-randconfig-x074-20230817 (https://download.01.org/0day-ci/archive/20230817/[email protected]/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230817/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> drivers/media/pci/intel/ivsc/mei_csi.c:342:10: error: call to undeclared function 'v4l2_subdev_get_try_format'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return v4l2_subdev_get_try_format(sd, sd_state, pad);
^
>> drivers/media/pci/intel/ivsc/mei_csi.c:342:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct v4l2_mbus_framefmt *' [-Wint-conversion]
return v4l2_subdev_get_try_format(sd, sd_state, pad);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/pci/intel/ivsc/mei_csi.c:360:16: error: call to undeclared function 'v4l2_subdev_get_try_format'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
mbusformat = v4l2_subdev_get_try_format(sd, sd_state, i);
^
>> drivers/media/pci/intel/ivsc/mei_csi.c:360:14: error: incompatible integer to pointer conversion assigning to 'struct v4l2_mbus_framefmt *' from 'int' [-Wint-conversion]
mbusformat = v4l2_subdev_get_try_format(sd, sd_state, i);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~4 errors generated.
vim +/v4l2_subdev_get_try_format +342 drivers/media/pci/intel/ivsc/mei_csi.c
332
333 static struct v4l2_mbus_framefmt *
334 mei_csi_get_pad_format(struct v4l2_subdev *sd,
335 struct v4l2_subdev_state *sd_state,
336 unsigned int pad, u32 which)
337 {
338 struct mei_csi *csi = sd_to_csi(sd);
339
340 switch (which) {
341 case V4L2_SUBDEV_FORMAT_TRY:
> 342 return v4l2_subdev_get_try_format(sd, sd_state, pad);
343 case V4L2_SUBDEV_FORMAT_ACTIVE:
344 return &csi->format_mbus[pad];
345 default:
346 return NULL;
347 }
348 }
349
350 static int mei_csi_init_cfg(struct v4l2_subdev *sd,
351 struct v4l2_subdev_state *sd_state)
352 {
353 struct v4l2_mbus_framefmt *mbusformat;
354 struct mei_csi *csi = sd_to_csi(sd);
355 unsigned int i;
356
357 mutex_lock(&csi->lock);
358
359 for (i = 0; i < sd->entity.num_pads; i++) {
> 360 mbusformat = v4l2_subdev_get_try_format(sd, sd_state, i); 361 *mbusformat = mei_csi_format_mbus_default;
362 }
363
364 mutex_unlock(&csi->lock);
365
366 return 0;
367 }
368
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki