[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202507181803.MKWlcVqu-lkp@intel.com>
Date: Fri, 18 Jul 2025 18:46:42 +0800
From: kernel test robot <lkp@...el.com>
To: Jacopo Mondi <jacopo.mondi@...asonboard.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Tomi Valkeinen <tomi.valkeinen@...asonboard.com>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Nicolas Dufresne <nicolas.dufresne@...labora.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Tomasz Figa <tfiga@...omium.org>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Raspberry Pi Kernel Maintenance <kernel-list@...pberrypi.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Hans Verkuil <hverkuil@...all.nl>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
Jacopo Mondi <jacopo.mondi@...asonboard.com>
Subject: Re: [PATCH 11/26] media: videobuf2-v4l2: Support vb2_queue embedded
in a context
Hi Jacopo,
kernel test robot noticed the following build errors:
[auto build test ERROR on d968e50b5c26642754492dea23cbd3592bde62d8]
url: https://github.com/intel-lab-lkp/linux/commits/Jacopo-Mondi/media-mc-Add-per-file-handle-data-support/20250717-190546
base: d968e50b5c26642754492dea23cbd3592bde62d8
patch link: https://lore.kernel.org/r/20250717-multicontext-mainline-2025-v1-11-81ac18979c03%40ideasonboard.com
patch subject: [PATCH 11/26] media: videobuf2-v4l2: Support vb2_queue embedded in a context
config: x86_64-buildonly-randconfig-004-20250718 (https://download.01.org/0day-ci/archive/20250718/202507181803.MKWlcVqu-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250718/202507181803.MKWlcVqu-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507181803.MKWlcVqu-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/common/videobuf2/videobuf2-v4l2.c:1012:5: error: call to undeclared function 'video_device_context_from_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1012 | video_device_context_from_file(file, vdev);
| ^
>> drivers/media/common/videobuf2/videobuf2-v4l2.c:1011:31: error: incompatible integer to pointer conversion initializing 'struct video_device_context *' with an expression of type 'int' [-Wint-conversion]
1011 | struct video_device_context *ctx =
| ^
1012 | video_device_context_from_file(file, vdev);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/common/videobuf2/videobuf2-v4l2.c:1014:19: error: incomplete definition of type 'struct video_device_context'
1014 | return ctx ? &ctx->queue
| ~~~^
include/media/v4l2-dev.h:288:9: note: forward declaration of 'struct video_device_context'
288 | struct video_device_context *default_context;
| ^
drivers/media/common/videobuf2/videobuf2-v4l2.c:1015:54: error: incomplete definition of type 'struct video_device_context'
1015 | : vdev->default_context ? &vdev->default_context->queue
| ~~~~~~~~~~~~~~~~~~~~~^
include/media/v4l2-dev.h:288:9: note: forward declaration of 'struct video_device_context'
288 | struct video_device_context *default_context;
| ^
4 errors generated.
vim +/video_device_context_from_file +1012 drivers/media/common/videobuf2/videobuf2-v4l2.c
992
993 /*
994 * The following functions are not part of the vb2 core API, but are helper
995 * functions that plug into struct v4l2_ioctl_ops, struct v4l2_file_operations
996 * and struct vb2_ops.
997 * They contain boilerplate code that most if not all drivers have to do
998 * and so they simplify the driver code.
999 */
1000
1001 /*
1002 * Helper to get the vb2 queue either from:
1003 * 1) The video context bound to the open file handle
1004 * 2) The default context for context-aware drivers if userspace has not bound
1005 * a context to the file handle
1006 * 3) From the video device for non-context aware drivers
1007 */
1008 static struct vb2_queue *get_vb2_queue(struct file *file,
1009 struct video_device *vdev)
1010 {
> 1011 struct video_device_context *ctx =
> 1012 video_device_context_from_file(file, vdev);
1013
> 1014 return ctx ? &ctx->queue
1015 : vdev->default_context ? &vdev->default_context->queue
1016 : vdev->queue;
1017 }
1018
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists