Hi, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.7-rc4 next-20160624] [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-a-cosmetic-fix-and-2-new-features/20160624-193142 base: git://linuxtv.org/media_tree.git master config: arm-exynos_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/media/usb/uvc/uvc_metadata.c: In function 'meta_v4l2_querycap': drivers/media/usb/uvc/uvc_metadata.c:133:21: error: 'V4L2_CAP_META_CAPTURE' undeclared (first use in this function) cap->device_caps = V4L2_CAP_META_CAPTURE ^ drivers/media/usb/uvc/uvc_metadata.c:133:21: note: each undeclared identifier is reported only once for each function it appears in drivers/media/usb/uvc/uvc_metadata.c: In function 'meta_v4l2_get_format': drivers/media/usb/uvc/uvc_metadata.c:149:45: error: 'union <anonymous>' has no member named 'meta' struct v4l2_meta_format *fmt = &format->fmt.meta; ^ In file included from include/linux/string.h:18:0, from include/linux/dynamic_debug.h:111, from include/linux/printk.h:289, from include/linux/kernel.h:13, from drivers/media/usb/uvc/uvc_metadata.c:13: >> drivers/media/usb/uvc/uvc_metadata.c:154:24: error: dereferencing pointer to incomplete type 'struct v4l2_meta_format' memset(fmt, 0, sizeof(*fmt)); ^ arch/arm/include/asm/string.h:31:34: note: in definition of macro 'memset' void *__p = (p); size_t __n = n; \ ^ drivers/media/usb/uvc/uvc_metadata.c:156:20: error: 'V4L2_META_FMT_UVC' undeclared (first use in this function) fmt->dataformat = V4L2_META_FMT_UVC; ^ drivers/media/usb/uvc/uvc_metadata.c: At top level: drivers/media/usb/uvc/uvc_metadata.c:164: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:164: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:164:28: note: (near initialization for 'uvc_meta_ioctl_ops.vidioc_enum_fmt_vid_cap') drivers/media/usb/uvc/uvc_metadata.c:165: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:165: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:165:28: note: (near initialization for 'uvc_meta_ioctl_ops.vidioc_enum_fmt_vid_overlay') drivers/media/usb/uvc/uvc_metadata.c:166: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:166: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:166: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:210: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 +154 drivers/media/usb/uvc/uvc_metadata.c 143 } 144 145 static int meta_v4l2_get_format(struct file *file, void *fh, 146 struct v4l2_format *format) 147 { 148 struct v4l2_fh *vfh = file->private_data; > 149 struct v4l2_meta_format *fmt = &format->fmt.meta; 150 151 if (format->type != vfh->vdev->queue->type) 152 return -EINVAL; 153 > 154 memset(fmt, 0, sizeof(*fmt)); 155 > 156 fmt->dataformat = V4L2_META_FMT_UVC; 157 fmt->buffersize = UVC_PAYLOAD_HEADER_MAX_SIZE; 158 159 return 0; 160 } 161 162 static const struct v4l2_ioctl_ops uvc_meta_ioctl_ops = { 163 .vidioc_querycap = meta_v4l2_querycap, > 164 .vidioc_g_fmt_meta_cap = meta_v4l2_get_format, 165 .vidioc_s_fmt_meta_cap = meta_v4l2_get_format, 166 .vidioc_try_fmt_meta_cap = meta_v4l2_get_format, 167 .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: Binary data