* [freescale-fslc:6.6-1.0.x-imx 5784/11728] drivers/media/platform/mxc/capture/ov5647_mipi.c:319:19: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *, const struct i2c_device_id *)'
@ 2024-04-28 7:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-28 7:13 UTC (permalink / raw)
To: Otavio Salvador; +Cc: oe-kbuild-all
tree: https://github.com/Freescale/linux-fslc 6.6-1.0.x-imx
head: 37770f55ac9c4f6cd958eb5544939207eed8478f
commit: a5b79f65b3e476d02b1684409304720f7b0a0ebc [5784/11728] Merge remote-tracking branch 'origin/capture/ov5640' into capture/next
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240428/202404281516.vNRsRY8i-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404281516.vNRsRY8i-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/202404281516.vNRsRY8i-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/platform/mxc/capture/ov5647_mipi.c:319:19: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *, const struct i2c_device_id *)' [-Werror=incompatible-pointer-types]
319 | .probe = ov5647_probe,
| ^~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:319:19: note: (near initialization for 'ov5647_i2c_driver.probe')
drivers/media/platform/mxc/capture/ov5647_mipi.c:320:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
320 | .remove = ov5647_remove,
| ^~~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:320:19: note: (near initialization for 'ov5647_i2c_driver.remove')
drivers/media/platform/mxc/capture/ov5647_mipi.c: In function 'ov5647_enum_frameintervals':
drivers/media/platform/mxc/capture/ov5647_mipi.c:1442:17: error: implicit declaration of function 'pr_warning'; did you mean 'acpi_warning'? [-Werror=implicit-function-declaration]
1442 | pr_warning("Please assign pixel format, width and height.\n");
| ^~~~~~~~~~
| acpi_warning
drivers/media/platform/mxc/capture/ov5647_mipi.c: At top level:
drivers/media/platform/mxc/capture/ov5647_mipi.c:1522:34: error: initialization of 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_frame_size_enum *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_frame_size_enum *)' [-Werror=incompatible-pointer-types]
1522 | .enum_frame_size = ov5647_enum_framesizes,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:1522:34: note: (near initialization for 'ov5647_subdev_pad_ops.enum_frame_size')
drivers/media/platform/mxc/capture/ov5647_mipi.c:1523:34: error: initialization of 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_frame_interval_enum *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_frame_interval_enum *)' [-Werror=incompatible-pointer-types]
1523 | .enum_frame_interval = ov5647_enum_frameintervals,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:1523:34: note: (near initialization for 'ov5647_subdev_pad_ops.enum_frame_interval')
drivers/media/platform/mxc/capture/ov5647_mipi.c:1524:34: error: initialization of 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_mbus_code_enum *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_mbus_code_enum *)' [-Werror=incompatible-pointer-types]
1524 | .enum_mbus_code = ov5647_enum_mbus_code,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:1524:34: note: (near initialization for 'ov5647_subdev_pad_ops.enum_mbus_code')
drivers/media/platform/mxc/capture/ov5647_mipi.c:1525:34: error: initialization of 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_format *)' [-Werror=incompatible-pointer-types]
1525 | .set_fmt = ov5647_set_fmt,
| ^~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:1525:34: note: (near initialization for 'ov5647_subdev_pad_ops.set_fmt')
drivers/media/platform/mxc/capture/ov5647_mipi.c:1526:34: error: initialization of 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_format *)' [-Werror=incompatible-pointer-types]
1526 | .get_fmt = ov5647_get_fmt,
| ^~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/ov5647_mipi.c:1526:34: note: (near initialization for 'ov5647_subdev_pad_ops.get_fmt')
drivers/media/platform/mxc/capture/ov5647_mipi.c:1532:27: error: 'ov5647_get_register' undeclared here (not in a function); did you mean 'ov5647_get_shutter'?
1532 | .g_register = ov5647_get_register,
| ^~~~~~~~~~~~~~~~~~~
| ov5647_get_shutter
drivers/media/platform/mxc/capture/ov5647_mipi.c:1533:27: error: 'ov5647_set_register' undeclared here (not in a function); did you mean 'ov5647_set_shutter'?
1533 | .s_register = ov5647_set_register,
| ^~~~~~~~~~~~~~~~~~~
| ov5647_set_shutter
cc1: some warnings being treated as errors
vim +319 drivers/media/platform/mxc/capture/ov5647_mipi.c
1fbc9a5cc7bd37 Robby Cai 2019-09-27 313
1fbc9a5cc7bd37 Robby Cai 2019-09-27 314 static struct i2c_driver ov5647_i2c_driver = {
1fbc9a5cc7bd37 Robby Cai 2019-09-27 315 .driver = {
1fbc9a5cc7bd37 Robby Cai 2019-09-27 316 .owner = THIS_MODULE,
1fbc9a5cc7bd37 Robby Cai 2019-09-27 317 .name = "ov5647_mipi",
1fbc9a5cc7bd37 Robby Cai 2019-09-27 318 },
1fbc9a5cc7bd37 Robby Cai 2019-09-27 @319 .probe = ov5647_probe,
1fbc9a5cc7bd37 Robby Cai 2019-09-27 320 .remove = ov5647_remove,
1fbc9a5cc7bd37 Robby Cai 2019-09-27 321 .id_table = ov5647_id,
1fbc9a5cc7bd37 Robby Cai 2019-09-27 322 };
1fbc9a5cc7bd37 Robby Cai 2019-09-27 323
:::::: The code at line 319 was first introduced by commit
:::::: 1fbc9a5cc7bd373cf32dc3f66bbadfc57000e43f media: capture: add mipi camera ov5647 driver
:::::: TO: Robby Cai <robby.cai@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>
--
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:[~2024-04-28 7:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 7:13 [freescale-fslc:6.6-1.0.x-imx 5784/11728] drivers/media/platform/mxc/capture/ov5647_mipi.c:319:19: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *, const struct i2c_device_id *)' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.