From: kbuild test robot <lkp@intel.com>
To: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Cc: kbuild-all@01.org, linux-media@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Hans Verkuil <hverkuil@xs4all.nl>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Subject: Re: [PATCH v3 4/4] uvcvideo: add a metadata device node
Date: Tue, 13 Dec 2016 02:56:37 +0800 [thread overview]
Message-ID: <201612130212.GceeJ0Pc%fengguang.wu@intel.com> (raw)
In-Reply-To: <1481541412-1186-5-git-send-email-guennadi.liakhovetski@intel.com>
[-- Attachment #1: Type: text/plain, Size: 4306 bytes --]
Hi Guennadi,
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v4.9 next-20161209]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Guennadi-Liakhovetski/uvcvideo-metadata-device-node/20161213-004101
base: git://linuxtv.org/media_tree.git master
config: x86_64-randconfig-i0-12120350 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
drivers/media/usb/uvc/uvc_metadata.c: In function 'meta_v4l2_get_format':
drivers/media/usb/uvc/uvc_metadata.c:59:45: error: 'union <anonymous>' has no member named 'meta'
struct v4l2_meta_format *fmt = &format->fmt.meta;
^
>> drivers/media/usb/uvc/uvc_metadata.c:64:24: error: dereferencing pointer to incomplete type
memset(fmt, 0, sizeof(*fmt));
^
drivers/media/usb/uvc/uvc_metadata.c:66:5: error: dereferencing pointer to incomplete type
fmt->dataformat = V4L2_META_FMT_UVC;
^
drivers/media/usb/uvc/uvc_metadata.c:67:5: error: dereferencing pointer to incomplete type
fmt->buffersize = UVC_PAYLOAD_HEADER_MAX_SIZE;
^
drivers/media/usb/uvc/uvc_metadata.c: At top level:
drivers/media/usb/uvc/uvc_metadata.c:74:2: error: unknown field 'vidioc_g_fmt_meta_cap' specified in initializer
.vidioc_g_fmt_meta_cap = meta_v4l2_get_format,
^
>> drivers/media/usb/uvc/uvc_metadata.c:74:2: warning: initialization from incompatible pointer type
drivers/media/usb/uvc/uvc_metadata.c:74:2: warning: (near initialization for 'uvc_meta_ioctl_ops.vidioc_enum_fmt_vid_cap')
drivers/media/usb/uvc/uvc_metadata.c:75:2: error: unknown field 'vidioc_s_fmt_meta_cap' specified in initializer
.vidioc_s_fmt_meta_cap = meta_v4l2_get_format,
^
drivers/media/usb/uvc/uvc_metadata.c:75:2: warning: initialization from incompatible pointer type
drivers/media/usb/uvc/uvc_metadata.c:75:2: warning: (near initialization for 'uvc_meta_ioctl_ops.vidioc_enum_fmt_vid_overlay')
drivers/media/usb/uvc/uvc_metadata.c:76:2: error: unknown field 'vidioc_try_fmt_meta_cap' specified in initializer
.vidioc_try_fmt_meta_cap = meta_v4l2_get_format,
^
drivers/media/usb/uvc/uvc_metadata.c:76:2: warning: initialization from incompatible pointer type
drivers/media/usb/uvc/uvc_metadata.c:76:2: warning: (near initialization for 'uvc_meta_ioctl_ops.vidioc_enum_fmt_vid_out')
drivers/media/usb/uvc/uvc_metadata.c: In function 'uvc_meta_register':
drivers/media/usb/uvc/uvc_metadata.c:135:22: error: 'V4L2_CAP_META_CAPTURE' undeclared (first use in this function)
vdev->device_caps = V4L2_CAP_META_CAPTURE | V4L2_CAP_STREAMING;
^
drivers/media/usb/uvc/uvc_metadata.c:135:22: note: each undeclared identifier is reported only once for each function it appears in
drivers/media/usb/uvc/uvc_metadata.c:141:16: error: 'V4L2_BUF_TYPE_META_CAPTURE' undeclared (first use in this function)
queue->type = V4L2_BUF_TYPE_META_CAPTURE;
^
vim +64 drivers/media/usb/uvc/uvc_metadata.c
53 }
54
55 static int meta_v4l2_get_format(struct file *file, void *fh,
56 struct v4l2_format *format)
57 {
58 struct v4l2_fh *vfh = file->private_data;
> 59 struct v4l2_meta_format *fmt = &format->fmt.meta;
60
61 if (format->type != vfh->vdev->queue->type)
62 return -EINVAL;
63
> 64 memset(fmt, 0, sizeof(*fmt));
65
66 fmt->dataformat = V4L2_META_FMT_UVC;
> 67 fmt->buffersize = UVC_PAYLOAD_HEADER_MAX_SIZE;
68
69 return 0;
70 }
71
72 static const struct v4l2_ioctl_ops uvc_meta_ioctl_ops = {
73 .vidioc_querycap = meta_v4l2_querycap,
> 74 .vidioc_g_fmt_meta_cap = meta_v4l2_get_format,
75 .vidioc_s_fmt_meta_cap = meta_v4l2_get_format,
76 .vidioc_try_fmt_meta_cap = meta_v4l2_get_format,
77 .vidioc_reqbufs = vb2_ioctl_reqbufs,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33287 bytes --]
next prev parent reply other threads:[~2016-12-12 18:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-12 11:16 [PATCH v3 0/4] uvcvideo: metadata device node Guennadi Liakhovetski
2016-12-12 11:16 ` [PATCH v3 1/4] uvcvideo: (cosmetic) add and use an inline function Guennadi Liakhovetski
2016-12-30 13:28 ` Laurent Pinchart
2016-12-30 13:50 ` Guennadi Liakhovetski
2016-12-12 11:16 ` [PATCH v3 2/4] uvcvideo: (cosmetic) remove a superfluous assignment Guennadi Liakhovetski
2016-12-30 13:30 ` Laurent Pinchart
2016-12-12 11:16 ` [PATCH v3 3/4] uvcvideo: fix a wrong macro Guennadi Liakhovetski
2016-12-30 13:33 ` Laurent Pinchart
2016-12-12 11:16 ` [PATCH v3 4/4] uvcvideo: add a metadata device node Guennadi Liakhovetski
2016-12-12 17:31 ` kbuild test robot
2016-12-12 18:56 ` kbuild test robot [this message]
2016-12-12 19:32 ` kbuild test robot
2016-12-30 10:43 ` Guennadi Liakhovetski
2016-12-30 12:32 ` Laurent Pinchart
2016-12-30 13:04 ` Guennadi Liakhovetski
2016-12-30 13:20 ` Laurent Pinchart
2017-01-03 14:55 ` Guennadi Liakhovetski
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=201612130212.GceeJ0Pc%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=g.liakhovetski@gmx.de \
--cc=guennadi.liakhovetski@intel.com \
--cc=hverkuil@xs4all.nl \
--cc=kbuild-all@01.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).