* [freescale-fslc:pr/642 670/30000] drivers/media/platform/mxc/capture/mx6s_capture.c:1991:12: warning: 'mx6s_csi_runtime_resume' defined but not used
@ 2023-10-13 17:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-13 17:32 UTC (permalink / raw)
To: Otavio Salvador; +Cc: oe-kbuild-all
tree: https://github.com/Freescale/linux-fslc pr/642
head: c8b7cf62c7fea8456dec789d550b8006d73b8f04
commit: d6bfdb3631df579118ee2c3223d776e671ba4cd1 [670/30000] media: v4l2 capture: add v4l2 capture driver based on csi
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231014/202310140144.HzECPSpY-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231014/202310140144.HzECPSpY-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/202310140144.HzECPSpY-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/media/videobuf2-dma-contig.h:16,
from drivers/media/platform/mxc/capture/mx6s_capture.c:46:
include/media/videobuf2-v4l2.h:144:56: note: expected 'struct media_device *' but argument is of type 'struct v4l2_buffer *'
144 | int vb2_qbuf(struct vb2_queue *q, struct media_device *mdev,
| ~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/media/platform/mxc/capture/mx6s_capture.c:1368:16: error: too few arguments to function 'vb2_qbuf'
1368 | return vb2_qbuf(&csi_dev->vb2_vidq, p);
| ^~~~~~~~
include/media/videobuf2-v4l2.h:144:5: note: declared here
144 | int vb2_qbuf(struct vb2_queue *q, struct media_device *mdev,
| ^~~~~~~~
In file included from include/media/v4l2-device.h:13,
from drivers/media/platform/mxc/capture/mx6s_capture.c:43:
drivers/media/platform/mxc/capture/mx6s_capture.c: In function 'mx6s_vidioc_g_parm':
include/media/v4l2-subdev.h:1106:56: error: 'const struct v4l2_subdev_video_ops' has no member named 'g_parm'
1106 | else if (!(__sd->ops->o && __sd->ops->o->f)) \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1607:16: note: in expansion of macro 'v4l2_subdev_call'
1607 | return v4l2_subdev_call(sd, video, g_parm, a);
| ^~~~~~~~~~~~~~~~
include/media/v4l2-subdev.h:1109:53: error: 'const struct v4l2_subdev_video_ops' has no member named 'g_parm'
1109 | v4l2_subdev_call_wrappers.o->f) \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1607:16: note: in expansion of macro 'v4l2_subdev_call'
1607 | return v4l2_subdev_call(sd, video, g_parm, a);
| ^~~~~~~~~~~~~~~~
include/media/v4l2-subdev.h:1110:63: error: 'const struct v4l2_subdev_video_ops' has no member named 'g_parm'
1110 | __result = v4l2_subdev_call_wrappers.o->f( \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1607:16: note: in expansion of macro 'v4l2_subdev_call'
1607 | return v4l2_subdev_call(sd, video, g_parm, a);
| ^~~~~~~~~~~~~~~~
include/media/v4l2-subdev.h:1113:48: error: 'const struct v4l2_subdev_video_ops' has no member named 'g_parm'
1113 | __result = __sd->ops->o->f(__sd, ##args); \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1607:16: note: in expansion of macro 'v4l2_subdev_call'
1607 | return v4l2_subdev_call(sd, video, g_parm, a);
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/mx6s_capture.c: In function 'mx6s_vidioc_s_parm':
include/media/v4l2-subdev.h:1106:56: error: 'const struct v4l2_subdev_video_ops' has no member named 's_parm'
1106 | else if (!(__sd->ops->o && __sd->ops->o->f)) \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1616:16: note: in expansion of macro 'v4l2_subdev_call'
1616 | return v4l2_subdev_call(sd, video, s_parm, a);
| ^~~~~~~~~~~~~~~~
include/media/v4l2-subdev.h:1109:53: error: 'const struct v4l2_subdev_video_ops' has no member named 's_parm'
1109 | v4l2_subdev_call_wrappers.o->f) \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1616:16: note: in expansion of macro 'v4l2_subdev_call'
1616 | return v4l2_subdev_call(sd, video, s_parm, a);
| ^~~~~~~~~~~~~~~~
include/media/v4l2-subdev.h:1110:63: error: 'const struct v4l2_subdev_video_ops' has no member named 's_parm'
1110 | __result = v4l2_subdev_call_wrappers.o->f( \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1616:16: note: in expansion of macro 'v4l2_subdev_call'
1616 | return v4l2_subdev_call(sd, video, s_parm, a);
| ^~~~~~~~~~~~~~~~
include/media/v4l2-subdev.h:1113:48: error: 'const struct v4l2_subdev_video_ops' has no member named 's_parm'
1113 | __result = __sd->ops->o->f(__sd, ##args); \
| ^~
drivers/media/platform/mxc/capture/mx6s_capture.c:1616:16: note: in expansion of macro 'v4l2_subdev_call'
1616 | return v4l2_subdev_call(sd, video, s_parm, a);
| ^~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/mx6s_capture.c: At top level:
drivers/media/platform/mxc/capture/mx6s_capture.c:1692:10: error: 'const struct v4l2_ioctl_ops' has no member named 'vidioc_cropcap'; did you mean 'vidioc_querycap'?
1692 | .vidioc_cropcap = mx6s_vidioc_cropcap,
| ^~~~~~~~~~~~~~
| vidioc_querycap
drivers/media/platform/mxc/capture/mx6s_capture.c:1692:33: error: initialization of 'int (*)(struct file *, void *, struct v4l2_format *)' from incompatible pointer type 'int (*)(struct file *, void *, struct v4l2_cropcap *)' [-Werror=incompatible-pointer-types]
1692 | .vidioc_cropcap = mx6s_vidioc_cropcap,
| ^~~~~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/mx6s_capture.c:1692:33: note: (near initialization for 'mx6s_csi_ioctl_ops.vidioc_s_fmt_vid_overlay')
drivers/media/platform/mxc/capture/mx6s_capture.c:1693:10: error: 'const struct v4l2_ioctl_ops' has no member named 'vidioc_s_crop'; did you mean 'vidioc_s_ctrl'?
1693 | .vidioc_s_crop = mx6s_vidioc_s_crop,
| ^~~~~~~~~~~~~
| vidioc_s_ctrl
drivers/media/platform/mxc/capture/mx6s_capture.c:1693:33: error: initialization of 'int (*)(struct file *, void *, struct v4l2_format *)' from incompatible pointer type 'int (*)(struct file *, void *, const struct v4l2_crop *)' [-Werror=incompatible-pointer-types]
1693 | .vidioc_s_crop = mx6s_vidioc_s_crop,
| ^~~~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/mx6s_capture.c:1693:33: note: (near initialization for 'mx6s_csi_ioctl_ops.vidioc_s_fmt_vid_out')
drivers/media/platform/mxc/capture/mx6s_capture.c:1694:10: error: 'const struct v4l2_ioctl_ops' has no member named 'vidioc_g_crop'; did you mean 'vidioc_g_ctrl'?
1694 | .vidioc_g_crop = mx6s_vidioc_g_crop,
| ^~~~~~~~~~~~~
| vidioc_g_ctrl
drivers/media/platform/mxc/capture/mx6s_capture.c:1694:33: error: initialization of 'int (*)(struct file *, void *, struct v4l2_format *)' from incompatible pointer type 'int (*)(struct file *, void *, struct v4l2_crop *)' [-Werror=incompatible-pointer-types]
1694 | .vidioc_g_crop = mx6s_vidioc_g_crop,
| ^~~~~~~~~~~~~~~~~~
drivers/media/platform/mxc/capture/mx6s_capture.c:1694:33: note: (near initialization for 'mx6s_csi_ioctl_ops.vidioc_s_fmt_vid_out_overlay')
drivers/media/platform/mxc/capture/mx6s_capture.c: In function 'mx6sx_register_subdevs':
drivers/media/platform/mxc/capture/mx6s_capture.c:1826:33: error: 'struct v4l2_async_notifier' has no member named 'subdevs'
1826 | csi_dev->subdev_notifier.subdevs = csi_dev->async_subdevs;
| ^
drivers/media/platform/mxc/capture/mx6s_capture.c:1827:33: error: 'struct v4l2_async_notifier' has no member named 'num_subdevs'
1827 | csi_dev->subdev_notifier.num_subdevs = 1;
| ^
drivers/media/platform/mxc/capture/mx6s_capture.c: In function 'mx6s_vidioc_qbuf':
drivers/media/platform/mxc/capture/mx6s_capture.c:1369:1: warning: control reaches end of non-void function [-Wreturn-type]
1369 | }
| ^
drivers/media/platform/mxc/capture/mx6s_capture.c: At top level:
>> drivers/media/platform/mxc/capture/mx6s_capture.c:1991:12: warning: 'mx6s_csi_runtime_resume' defined but not used [-Wunused-function]
1991 | static int mx6s_csi_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/mxc/capture/mx6s_capture.c:1985:12: warning: 'mx6s_csi_runtime_suspend' defined but not used [-Wunused-function]
1985 | static int mx6s_csi_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/mx6s_csi_runtime_resume +1991 drivers/media/platform/mxc/capture/mx6s_capture.c
1984
> 1985 static int mx6s_csi_runtime_suspend(struct device *dev)
1986 {
1987 dev_dbg(dev, "csi v4l2 busfreq high release.\n");
1988 return 0;
1989 }
1990
> 1991 static int mx6s_csi_runtime_resume(struct device *dev)
1992 {
1993 dev_dbg(dev, "csi v4l2 busfreq high request.\n");
1994 return 0;
1995 }
1996
--
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:[~2023-10-13 17:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 17:32 [freescale-fslc:pr/642 670/30000] drivers/media/platform/mxc/capture/mx6s_capture.c:1991:12: warning: 'mx6s_csi_runtime_resume' defined but not used 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.