mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
	Kieran Bingham <kieran.bingham@ideasonboard.com>,
	Nicolas Dufresne <nicolas.dufresne@collabora.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Tomasz Figa <tfiga@chromium.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Hans Verkuil <hverkuil@xs4all.nl>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-rpi-kernel@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Subject: Re: [PATCH 11/26] media: videobuf2-v4l2: Support vb2_queue embedded in a context
Date: Fri, 18 Jul 2025 18:46:42 +0800	[thread overview]
Message-ID: <202507181803.MKWlcVqu-lkp@intel.com> (raw)
In-Reply-To: <20250717-multicontext-mainline-2025-v1-11-81ac18979c03@ideasonboard.com>

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@intel.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

  reply	other threads:[~2025-07-18 10:46 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-17 10:45 [PATCH 00/26] media: Add support for multi-context operations Jacopo Mondi
2025-07-17 10:45 ` [PATCH 01/26] media: mc: Add per-file-handle data support Jacopo Mondi
2025-07-17 10:45 ` [PATCH 02/26] media: mc: Maintain a list of open file handles in a media device Jacopo Mondi
2025-07-17 10:45 ` [PATCH 03/26] media: media-entity: Introduce media_entity_context Jacopo Mondi
2025-07-17 10:45 ` [PATCH 04/26] media: media-device: Introduce media device context Jacopo Mondi
2025-10-01 20:30   ` Michael Riesch
2025-07-17 10:45 ` [PATCH 05/26] media: v4l2-dev: Introduce video " Jacopo Mondi
2025-07-17 10:45 ` [PATCH 06/26] media: v4l2-ioctl: Introduce VIDIOC_BIND_CONTEXT Jacopo Mondi
2025-10-01 21:41   ` Michael Riesch
2025-10-02  8:48     ` Jacopo Mondi
2025-10-03  7:40       ` Michael Riesch
2025-10-03  7:49         ` Jacopo Mondi
2025-07-17 10:45 ` [PATCH 07/26] media: Documentation: Add VIDIOC_BIND_CONTEXT Jacopo Mondi
2025-07-17 10:45 ` [PATCH 08/26] media: v4l2-dev: Introduce default contexts Jacopo Mondi
2025-07-17 10:45 ` [PATCH 09/26] media: v4l2-dev: Add video_device_context_from_file() Jacopo Mondi
2025-07-18  9:33   ` kernel test robot
2025-07-17 10:45 ` [PATCH 10/26] media: v4l2-dev: Add video_device_context_from_queue() Jacopo Mondi
2025-07-17 10:45 ` [PATCH 11/26] media: videobuf2-v4l2: Support vb2_queue embedded in a context Jacopo Mondi
2025-07-18 10:46   ` kernel test robot [this message]
2025-07-17 10:45 ` [PATCH 12/26] media: v4l2-subdev: Introduce v4l2 subdev context Jacopo Mondi
2025-07-17 10:45 ` [PATCH 13/26] media: v4l2-subdev: Introduce VIDIOC_SUBDEV_BIND_CONTEXT Jacopo Mondi
2025-07-17 10:45 ` [PATCH 14/26] media: Documentation: Add VIDIOC_SUBDEV_BIND_CONTEXT Jacopo Mondi
2025-07-17 10:45 ` [PATCH 15/26] media: v4l2_subdev: Introduce default context Jacopo Mondi
2025-07-17 10:45 ` [PATCH 16/26] media: v4l2-subdev: Add subdev state accessor helpers Jacopo Mondi
2025-07-17 10:45 ` [PATCH 17/26] media: v4l2-subdev: Get state from context Jacopo Mondi
2025-07-17 10:45 ` [PATCH 18/26] media: media-entity: Support context in pipeline_start Jacopo Mondi
2025-07-17 10:45 ` [PATCH 19/26] media: mc-entity: Add link_validate_context Jacopo Mondi
2025-07-17 10:45 ` [PATCH 20/26] media: v4l2-subdev: Validate media links with context Jacopo Mondi
2025-07-17 10:45 ` [PATCH DNI 21/26] media: pisp_be: Start and stop the media pipeline Jacopo Mondi
2025-07-17 10:45 ` [PATCH DNI 22/26] media: pisp_be: Add support for subdev state Jacopo Mondi
2025-07-17 10:45 ` [PATCH DNI 23/26] media: pisp_be: Implement set/get_pad_fmt Jacopo Mondi
2025-07-17 10:45 ` [PATCH DNI 24/26] media: pisp_be: Implement link validation Jacopo Mondi
2025-07-17 10:45 ` [PATCH DNI 25/26] media: pisp_be: Register devnode to userspace Jacopo Mondi
2025-07-17 10:45 ` [PATCH DNI 26/26] media: pisp_be: Add support for multi-context Jacopo Mondi

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=202507181803.MKWlcVqu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=hverkuil@xs4all.nl \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=kernel-list@raspberrypi.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rpi-kernel@lists.infradead.org \
    --cc=llvm@lists.linux.dev \
    --cc=m.szyprowski@samsung.com \
    --cc=mchehab@kernel.org \
    --cc=nicolas.dufresne@collabora.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tfiga@chromium.org \
    --cc=tomi.valkeinen@ideasonboard.com \
    /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

all inboxes | Powered by JetHome®