Linux Media Controller development
 help / color / mirror / Atom feed
* [sailus-media-tree:devel 26/26] drivers/media/i2c/imx576.c:738:20: error: initialization of 'int (*)(struct v4l2_subdev *, const struct v4l2_subdev_client_info *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, stru...
@ 2026-10-06  2:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-06  2:39 UTC (permalink / raw)
  To: Himanshu Bhavani; +Cc: oe-kbuild-all, linux-media, Sakari Ailus

tree:   git://linuxtv.org/sailus/media_tree.git devel
head:   d5ffd31776528da0ec4bc883afd056513773566b
commit: d5ffd31776528da0ec4bc883afd056513773566b [26/26] media: i2c: add imx576 image sensor driver
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20261006/202610061019.8ldzc0xf-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261006/202610061019.8ldzc0xf-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/202610061019.8ldzc0xf-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/media/i2c/imx576.c:738:20: error: initialization of 'int (*)(struct v4l2_subdev *, const struct v4l2_subdev_client_info *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' [-Wincompatible-pointer-types]
     738 |         .set_fmt = imx576_set_pad_format,
         |                    ^~~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/imx576.c:738:20: note: (near initialization for 'imx576_pad_ops.set_fmt')
   drivers/media/i2c/imx576.c:416:12: note: 'imx576_set_pad_format' declared here
     416 | static int imx576_set_pad_format(struct v4l2_subdev *sd,
         |            ^~~~~~~~~~~~~~~~~~~~~
>> drivers/media/i2c/imx576.c:739:26: error: initialization of 'int (*)(struct v4l2_subdev *, const struct v4l2_subdev_client_info *, struct v4l2_subdev_state *, struct v4l2_subdev_selection *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_selection *)' [-Wincompatible-pointer-types]
     739 |         .get_selection = imx576_get_selection,
         |                          ^~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/imx576.c:739:26: note: (near initialization for 'imx576_pad_ops.get_selection')
   drivers/media/i2c/imx576.c:453:12: note: 'imx576_get_selection' declared here
     453 | static int imx576_get_selection(struct v4l2_subdev *sd,
         |            ^~~~~~~~~~~~~~~~~~~~


vim +738 drivers/media/i2c/imx576.c

   733	
   734	static const struct v4l2_subdev_pad_ops imx576_pad_ops = {
   735		.enum_mbus_code = imx576_enum_mbus_code,
   736		.enum_frame_size = imx576_enum_frame_size,
   737		.get_fmt = v4l2_subdev_get_fmt,
 > 738		.set_fmt = imx576_set_pad_format,
 > 739		.get_selection = imx576_get_selection,
   740		.enable_streams = imx576_enable_streams,
   741		.disable_streams = imx576_disable_streams,
   742	};
   743	

--
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-10-06  2:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06  2:39 [sailus-media-tree:devel 26/26] drivers/media/i2c/imx576.c:738:20: error: initialization of 'int (*)(struct v4l2_subdev *, const struct v4l2_subdev_client_info *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' from incompatible pointer type 'int (*)(struct v4l2_subdev *, stru 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