From: kernel test robot <lkp@intel.com>
To: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC 4/4] media: videobuf2: Stop define VB2_MAX_FRAME as global
Date: Thu, 16 Mar 2023 03:22:32 +0800 [thread overview]
Message-ID: <202303160338.IGIhm3EY-lkp@intel.com> (raw)
In-Reply-To: <20230313135916.862852-5-benjamin.gaignard@collabora.com>
Hi Benjamin,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on media-tree/master]
[also build test ERROR on linus/master v6.3-rc2 next-20230315]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Benjamin-Gaignard/media-videobuf2-Use-vb2_get_buffer-as-helper-everywhere/20230313-220116
base: git://linuxtv.org/media_tree.git master
patch link: https://lore.kernel.org/r/20230313135916.862852-5-benjamin.gaignard%40collabora.com
patch subject: [RFC 4/4] media: videobuf2: Stop define VB2_MAX_FRAME as global
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230316/202303160338.IGIhm3EY-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/a67acf79be87d808e3b6c0836797e39006651241
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Benjamin-Gaignard/media-videobuf2-Use-vb2_get_buffer-as-helper-everywhere/20230313-220116
git checkout a67acf79be87d808e3b6c0836797e39006651241
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303160338.IGIhm3EY-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/staging/media/ipu3/ipu3-v4l2.c:398:44: error: use of undeclared identifier 'VB2_MAX_FRAME'
*num_buffers = clamp_val(*num_buffers, 1, VB2_MAX_FRAME);
^
>> drivers/staging/media/ipu3/ipu3-v4l2.c:398:44: error: use of undeclared identifier 'VB2_MAX_FRAME'
>> drivers/staging/media/ipu3/ipu3-v4l2.c:398:44: error: use of undeclared identifier 'VB2_MAX_FRAME'
>> drivers/staging/media/ipu3/ipu3-v4l2.c:398:44: error: use of undeclared identifier 'VB2_MAX_FRAME'
>> drivers/staging/media/ipu3/ipu3-v4l2.c:398:15: error: assigning to 'unsigned int' from incompatible type 'void'
*num_buffers = clamp_val(*num_buffers, 1, VB2_MAX_FRAME);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 errors generated.
vim +/VB2_MAX_FRAME +398 drivers/staging/media/ipu3/ipu3-v4l2.c
a0ca1627b4501d Yong Zhi 2018-12-06 385
27b795adb3c221 Yong Zhi 2019-02-07 386 static int imgu_vb2_queue_setup(struct vb2_queue *vq,
a0ca1627b4501d Yong Zhi 2018-12-06 387 unsigned int *num_buffers,
a0ca1627b4501d Yong Zhi 2018-12-06 388 unsigned int *num_planes,
a0ca1627b4501d Yong Zhi 2018-12-06 389 unsigned int sizes[],
a0ca1627b4501d Yong Zhi 2018-12-06 390 struct device *alloc_devs[])
a0ca1627b4501d Yong Zhi 2018-12-06 391 {
a0ca1627b4501d Yong Zhi 2018-12-06 392 struct imgu_device *imgu = vb2_get_drv_priv(vq);
a0ca1627b4501d Yong Zhi 2018-12-06 393 struct imgu_video_device *node =
a0ca1627b4501d Yong Zhi 2018-12-06 394 container_of(vq, struct imgu_video_device, vbq);
a0ca1627b4501d Yong Zhi 2018-12-06 395 const struct v4l2_format *fmt = &node->vdev_fmt;
a0ca1627b4501d Yong Zhi 2018-12-06 396 unsigned int size;
a0ca1627b4501d Yong Zhi 2018-12-06 397
a0ca1627b4501d Yong Zhi 2018-12-06 @398 *num_buffers = clamp_val(*num_buffers, 1, VB2_MAX_FRAME);
a0ca1627b4501d Yong Zhi 2018-12-06 399 alloc_devs[0] = &imgu->pci_dev->dev;
a0ca1627b4501d Yong Zhi 2018-12-06 400
a0ca1627b4501d Yong Zhi 2018-12-06 401 if (vq->type == V4L2_BUF_TYPE_META_CAPTURE ||
a0ca1627b4501d Yong Zhi 2018-12-06 402 vq->type == V4L2_BUF_TYPE_META_OUTPUT)
a0ca1627b4501d Yong Zhi 2018-12-06 403 size = fmt->fmt.meta.buffersize;
a0ca1627b4501d Yong Zhi 2018-12-06 404 else
a0ca1627b4501d Yong Zhi 2018-12-06 405 size = fmt->fmt.pix_mp.plane_fmt[0].sizeimage;
a0ca1627b4501d Yong Zhi 2018-12-06 406
a0ca1627b4501d Yong Zhi 2018-12-06 407 if (*num_planes) {
a0ca1627b4501d Yong Zhi 2018-12-06 408 if (sizes[0] < size)
a0ca1627b4501d Yong Zhi 2018-12-06 409 return -EINVAL;
a0ca1627b4501d Yong Zhi 2018-12-06 410 size = sizes[0];
a0ca1627b4501d Yong Zhi 2018-12-06 411 }
a0ca1627b4501d Yong Zhi 2018-12-06 412
a0ca1627b4501d Yong Zhi 2018-12-06 413 *num_planes = 1;
a0ca1627b4501d Yong Zhi 2018-12-06 414 sizes[0] = size;
51abe041c5ed56 Bingbu Cao 2018-12-06 415
a0ca1627b4501d Yong Zhi 2018-12-06 416 /* Initialize buffer queue */
a0ca1627b4501d Yong Zhi 2018-12-06 417 INIT_LIST_HEAD(&node->buffers);
a0ca1627b4501d Yong Zhi 2018-12-06 418
a0ca1627b4501d Yong Zhi 2018-12-06 419 return 0;
a0ca1627b4501d Yong Zhi 2018-12-06 420 }
a0ca1627b4501d Yong Zhi 2018-12-06 421
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
prev parent reply other threads:[~2023-03-15 19:23 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 13:59 [RFC 0/4] Allow more than 32 vb2 buffers per queue Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 13:59 ` [RFC 1/4] media: videobuf2: Use vb2_get_buffer() as helper everywhere Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 16:51 ` Andrzej Pietrasiewicz
2023-03-13 16:51 ` Andrzej Pietrasiewicz
2023-03-13 16:51 ` Andrzej Pietrasiewicz
2023-03-13 16:56 ` Benjamin Gaignard
2023-03-13 16:56 ` Benjamin Gaignard
2023-03-13 16:56 ` Benjamin Gaignard
2023-03-13 18:01 ` Laurent Pinchart
2023-03-13 18:01 ` Laurent Pinchart
2023-03-13 18:01 ` Laurent Pinchart
2023-03-13 18:04 ` Laurent Pinchart
2023-03-13 18:04 ` Laurent Pinchart
2023-03-13 18:04 ` Laurent Pinchart
2023-03-13 13:59 ` [RFC 2/4] media: videobuf2: Replace bufs array by a list Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 18:11 ` Laurent Pinchart
2023-03-13 18:11 ` Laurent Pinchart
2023-03-13 18:11 ` Laurent Pinchart
2023-03-13 23:16 ` David Laight
2023-03-13 23:16 ` David Laight
2023-03-13 23:16 ` David Laight
2023-03-14 8:55 ` Hans Verkuil
2023-03-14 10:11 ` David Laight
2023-03-14 10:42 ` Hans Verkuil
2023-03-14 10:42 ` Hans Verkuil
2023-03-14 10:42 ` Hans Verkuil
2023-03-19 23:33 ` Laurent Pinchart
2023-03-19 23:33 ` Laurent Pinchart
2023-03-19 23:33 ` Laurent Pinchart
2023-03-22 14:50 ` Nicolas Dufresne
2023-03-22 14:50 ` Nicolas Dufresne
2023-03-22 14:50 ` Nicolas Dufresne
2023-03-22 15:01 ` Laurent Pinchart
2023-03-22 15:01 ` Laurent Pinchart
2023-03-22 15:01 ` Laurent Pinchart
2023-03-24 15:14 ` Nicolas Dufresne
2023-03-24 15:14 ` Nicolas Dufresne
2023-03-24 15:14 ` Nicolas Dufresne
2023-03-24 15:18 ` Hans Verkuil
2023-03-24 15:18 ` Hans Verkuil
2023-03-24 15:18 ` Hans Verkuil
2023-03-24 15:34 ` Nicolas Dufresne
2023-03-24 15:34 ` Nicolas Dufresne
2023-03-24 15:34 ` Nicolas Dufresne
2023-03-24 20:21 ` Laurent Pinchart
2023-03-24 20:21 ` Laurent Pinchart
2023-03-24 20:21 ` Laurent Pinchart
2023-03-15 13:57 ` Nicolas Dufresne
2023-03-15 13:57 ` Nicolas Dufresne
2023-03-15 13:57 ` Nicolas Dufresne
2023-03-19 23:33 ` Laurent Pinchart
2023-03-19 23:33 ` Laurent Pinchart
2023-03-19 23:33 ` Laurent Pinchart
2023-03-14 7:20 ` kernel test robot
2023-03-14 16:05 ` kernel test robot
2023-03-15 1:57 ` kernel test robot
2023-03-13 13:59 ` [RFC 3/4] media: videobuf2: Use bitmap to manage vb2 index Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 18:14 ` Laurent Pinchart
2023-03-13 18:14 ` Laurent Pinchart
2023-03-13 18:14 ` Laurent Pinchart
2023-03-14 2:10 ` [EXT] " Ming Qian
2023-03-14 2:10 ` Ming Qian
2023-03-14 2:10 ` Ming Qian
2023-03-13 13:59 ` [RFC 4/4] media: videobuf2: Stop define VB2_MAX_FRAME as global Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-13 13:59 ` Benjamin Gaignard
2023-03-15 19:22 ` kernel test robot [this message]
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=202303160338.IGIhm3EY-lkp@intel.com \
--to=lkp@intel.com \
--cc=benjamin.gaignard@collabora.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.