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: i386-randconfig-a0-12120946 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/media/usb/uvc/uvc_queue.c: In function 'uvc_queue_setup': >> drivers/media/usb/uvc/uvc_queue.c:81:7: error: 'V4L2_BUF_TYPE_META_CAPTURE' undeclared (first use in this function) case V4L2_BUF_TYPE_META_CAPTURE: ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/usb/uvc/uvc_queue.c:81:7: note: each undeclared identifier is reported only once for each function it appears in drivers/media/usb/uvc/uvc_queue.c: In function 'uvc_buffer_prepare': drivers/media/usb/uvc/uvc_queue.c:121:7: error: 'V4L2_BUF_TYPE_META_CAPTURE' undeclared (first use in this function) case V4L2_BUF_TYPE_META_CAPTURE: ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/usb/uvc/uvc_queue.c: In function 'uvc_stop_streaming': drivers/media/usb/uvc/uvc_queue.c:198:18: error: 'V4L2_BUF_TYPE_META_CAPTURE' undeclared (first use in this function) if (vq->type != V4L2_BUF_TYPE_META_CAPTURE) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- 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; ^ In file included from arch/x86/include/asm/string.h:2:0, from include/linux/string.h:18, from arch/x86/include/asm/page_32.h:34, from arch/x86/include/asm/page.h:13, from arch/x86/include/asm/thread_info.h:11, from include/linux/thread_info.h:58, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/media/usb/uvc/uvc_metadata.c:15: >> drivers/media/usb/uvc/uvc_metadata.c:64:24: error: dereferencing pointer to incomplete type 'struct v4l2_meta_format' memset(fmt, 0, sizeof(*fmt)); ^~ arch/x86/include/asm/string_32.h:325:52: note: in definition of macro 'memset' #define memset(s, c, count) __builtin_memset(s, c, count) ^~~~~ 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:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .vidioc_g_fmt_meta_cap = meta_v4l2_get_format, ^~~~~~~~~~~~~~~~~~~~ drivers/media/usb/uvc/uvc_metadata.c:74:28: note: (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:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .vidioc_s_fmt_meta_cap = meta_v4l2_get_format, ^~~~~~~~~~~~~~~~~~~~ drivers/media/usb/uvc/uvc_metadata.c:75:28: note: (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:29: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .vidioc_try_fmt_meta_cap = meta_v4l2_get_format, ^~~~~~~~~~~~~~~~~~~~ drivers/media/usb/uvc/uvc_metadata.c:76:29: note: (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; ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/V4L2_BUF_TYPE_META_CAPTURE +81 drivers/media/usb/uvc/uvc_queue.c 75 { 76 struct uvc_video_queue *queue = vb2_get_drv_priv(vq); 77 struct uvc_streaming *stream; 78 unsigned int size; 79 80 switch (vq->type) { > 81 case V4L2_BUF_TYPE_META_CAPTURE: 82 size = UVC_PAYLOAD_HEADER_MAX_SIZE; 83 84 if (*nplanes && *nplanes != 1) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip