All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sat, 14 Oct 2023 01:32:57 +0800	[thread overview]
Message-ID: <202310140144.HzECPSpY-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-10-13 17:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202310140144.HzECPSpY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=otavio@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.