All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/staging/media/max96712/max96712.c:267: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 o...
@ 2026-08-30 19:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-30 19:21 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Sakari-Ailus/media-Documentation-Improve-pixel-rate-calculation-documentation/20260807-004311
head:   e0a6fe294ffbd4c2f0fae9bd3e777bc9375161dc
commit: e0a6fe294ffbd4c2f0fae9bd3e777bc9375161dc media: v4l2-subdev: Add struct v4l2_subdev_client_info pointer to pad ops
date:   3 weeks ago
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20260830/202608302111.KSUnWF5W-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260830/202608302111.KSUnWF5W-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/202608302111.KSUnWF5W-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/staging/media/max96712/max96712.c:267: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]
     267 |         .set_fmt = v4l2_subdev_get_fmt,
         |                    ^~~~~~~~~~~~~~~~~~~
   1 error generated.
--
>> drivers/media/platform/renesas/sh_vou.c:980:8: error: too few arguments to function call, expected 4, have 3
     980 |         ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     981 |                                          set_fmt, NULL, &format);
         |                                          ~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-device.h:448:2: note: expanded from macro 'v4l2_device_call_until_err'
     448 |         __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd,          \
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     449 |                         (grpid) == 0 || __sd->grp_id == (grpid), o, f , \
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     450 |                         ##args);                                        \
         |                         ~~~~~~~
   include/media/v4l2-device.h:356:41: note: expanded from macro '__v4l2_device_call_subdevs_until_err_p'
     356 |                         __err = (sd)->ops->o->f((sd) , ##args);         \
         |                                 ~~~~~~~~~~~~~~~              ^
   1 error generated.
--
>> drivers/media/platform/ti/cal/cal-video.c:139:8: error: incompatible pointer types passing 'struct v4l2_subdev_state *' to parameter of type 'const struct v4l2_subdev_client_info *' [-Wincompatible-pointer-types]
     139 |         ret = v4l2_subdev_call_state_active(sd, pad, set_fmt, NULL, &sd_fmt);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:2010:41: note: expanded from macro 'v4l2_subdev_call_state_active'
    2010 |                 __result = v4l2_subdev_call(sd, o, f, state, ##args);   \
         |                                                       ^~~~~
>> drivers/media/platform/ti/cal/cal-video.c:139:8: error: incompatible pointer types passing 'struct v4l2_subdev_state *' to parameter of type 'const struct v4l2_subdev_client_info *' [-Wincompatible-pointer-types]
     139 |         ret = v4l2_subdev_call_state_active(sd, pad, set_fmt, NULL, &sd_fmt);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:2010:41: note: expanded from macro 'v4l2_subdev_call_state_active'
    2010 |                 __result = v4l2_subdev_call(sd, o, f, state, ##args);   \
         |                                                       ^~~~~
   drivers/media/platform/ti/cal/cal-video.c:284:2: error: incompatible pointer types passing 'struct v4l2_subdev_state *' to parameter of type 'const struct v4l2_subdev_client_info *' [-Wincompatible-pointer-types]
     284 |         v4l2_subdev_call_state_active(sd, pad, set_fmt, NULL, &sd_fmt);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:2010:41: note: expanded from macro 'v4l2_subdev_call_state_active'
    2010 |                 __result = v4l2_subdev_call(sd, o, f, state, ##args);   \
         |                                                       ^~~~~
   drivers/media/platform/ti/cal/cal-video.c:284:2: error: incompatible pointer types passing 'struct v4l2_subdev_state *' to parameter of type 'const struct v4l2_subdev_client_info *' [-Wincompatible-pointer-types]
     284 |         v4l2_subdev_call_state_active(sd, pad, set_fmt, NULL, &sd_fmt);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:2010:41: note: expanded from macro 'v4l2_subdev_call_state_active'
    2010 |                 __result = v4l2_subdev_call(sd, o, f, state, ##args);   \
         |                                                       ^~~~~
   4 errors generated.
--
>> drivers/media/platform/st/stm32/stm32-dcmi.c:1066:8: error: too few arguments to function call, expected 4, have 3
    1066 |         ret = v4l2_subdev_call_state_try(dcmi->source, pad, set_fmt, &format);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:2047:15: note: expanded from macro 'v4l2_subdev_call_state_try'
    2047 |                         __result = v4l2_subdev_call(sd, o, f, state, ##args); \
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:1980:20: note: expanded from macro 'v4l2_subdev_call'
    1979 |                         __result = v4l2_subdev_call_wrappers.o->f(      \
         |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1980 |                                                         __sd, ##args);  \
         |                                                                     ^
>> drivers/media/platform/st/stm32/stm32-dcmi.c:1066:8: error: too few arguments to function call, expected 4, have 3
    1066 |         ret = v4l2_subdev_call_state_try(dcmi->source, pad, set_fmt, &format);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:2047:15: note: expanded from macro 'v4l2_subdev_call_state_try'
    2047 |                         __result = v4l2_subdev_call(sd, o, f, state, ##args); \
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/media/v4l2-subdev.h:1982:43: note: expanded from macro 'v4l2_subdev_call'
    1982 |                         __result = __sd->ops->o->f(__sd, ##args);       \
         |                                    ~~~~~~~~~~~~~~~             ^
>> drivers/media/platform/st/stm32/stm32-dcmi.c:1227:8: error: incompatible pointer types passing 'struct v4l2_subdev_state *' to parameter of type 'const struct v4l2_subdev_client_info *' [-Wincompatible-pointer-types]
    1227 |         ret = v4l2_subdev_call_state_try(dcmi->source, pad, set_fmt, NULL,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1228 |                                          &format);
         |                                          ~~~~~~~~
   include/media/v4l2-subdev.h:2047:42: note: expanded from macro 'v4l2_subdev_call_state_try'
    2047 |                         __result = v4l2_subdev_call(sd, o, f, state, ##args); \
         |                                                               ^~~~~
>> drivers/media/platform/st/stm32/stm32-dcmi.c:1227:8: error: incompatible pointer types passing 'struct v4l2_subdev_state *' to parameter of type 'const struct v4l2_subdev_client_info *' [-Wincompatible-pointer-types]
    1227 |         ret = v4l2_subdev_call_state_try(dcmi->source, pad, set_fmt, NULL,
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1228 |                                          &format);
         |                                          ~~~~~~~~
   include/media/v4l2-subdev.h:2047:42: note: expanded from macro 'v4l2_subdev_call_state_try'
    2047 |                         __result = v4l2_subdev_call(sd, o, f, state, ##args); \
         |                                                               ^~~~~
   4 errors generated.
--
>> drivers/media/i2c/cvs/v4l2.c:365: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]
     365 |         .set_fmt = cvs_csi_set_fmt,
         |                    ^~~~~~~~~~~~~~~
   1 error generated.


vim +267 drivers/staging/media/max96712/max96712.c

ce44dc1feab5f0 Niklas Söderlund 2024-05-10  264  
5814f32fef137e Niklas Söderlund 2021-09-12  265  static const struct v4l2_subdev_pad_ops max96712_pad_ops = {
ce44dc1feab5f0 Niklas Söderlund 2024-05-10  266  	.get_fmt = v4l2_subdev_get_fmt,
ce44dc1feab5f0 Niklas Söderlund 2024-05-10 @267  	.set_fmt = v4l2_subdev_get_fmt,
5814f32fef137e Niklas Söderlund 2021-09-12  268  };
5814f32fef137e Niklas Söderlund 2021-09-12  269  

--
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-08-30 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-30 19:21 drivers/staging/media/max96712/max96712.c:267: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 o 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.