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:
.config.gz
Description: application/gzip