linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Dafna Hirschfeld <dafna@fastmail.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Keke Li <keke.li@amlogic.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Heiko Stuebner <heiko@sntech.de>,
	Dan Scally <dan.scally@ideasonboard.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Subject: Re: [PATCH v2 5/8] media: v4l2-common: Introduce v4l2-params.c
Date: Mon, 14 Jul 2025 08:51:30 +0800	[thread overview]
Message-ID: <202507140820.LDrwmHML-lkp@intel.com> (raw)
In-Reply-To: <20250710-extensible-parameters-validation-v2-5-7ec8918ec443@ideasonboard.com>

Hi Jacopo,

kernel test robot noticed the following build errors:

[auto build test ERROR on a8598c7de1bcd94461ca54c972efa9b4ea501fb9]

url:    https://github.com/intel-lab-lkp/linux/commits/Jacopo-Mondi/media-uapi-Introduce-V4L2-extensible-params/20250710-215847
base:   a8598c7de1bcd94461ca54c972efa9b4ea501fb9
patch link:    https://lore.kernel.org/r/20250710-extensible-parameters-validation-v2-5-7ec8918ec443%40ideasonboard.com
patch subject: [PATCH v2 5/8] media: v4l2-common: Introduce v4l2-params.c
config: x86_64-randconfig-008-20250713 (https://download.01.org/0day-ci/archive/20250714/202507140820.LDrwmHML-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250714/202507140820.LDrwmHML-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/202507140820.LDrwmHML-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: drivers/media/v4l2-core/v4l2-params.o: in function `v4l2_params_buffer_validate':
>> drivers/media/v4l2-core/v4l2-params.c:16: undefined reference to `vb2_plane_vaddr'


vim +16 drivers/media/v4l2-core/v4l2-params.c

    10	
    11	int v4l2_params_buffer_validate(struct device *dev, struct vb2_buffer *vb,
    12					size_t max_size,
    13					v4l2_params_validate_buffer buffer_validate)
    14	{
    15		size_t header_size = offsetof(struct v4l2_params_buffer, data);
  > 16		struct v4l2_params_buffer *buffer = vb2_plane_vaddr(vb, 0);
    17		size_t payload_size = vb2_get_plane_payload(vb, 0);
    18		size_t buffer_size;
    19		int ret;
    20	
    21		/* Payload size can't be greater than the destination buffer size */
    22		if (payload_size > max_size) {
    23			dev_dbg(dev, "Payload size is too large: %zu\n", payload_size);
    24			return -EINVAL;
    25		}
    26	
    27		/* Payload size can't be smaller than the header size */
    28		if (payload_size < header_size) {
    29			dev_dbg(dev, "Payload size is too small: %zu\n", payload_size);
    30			return -EINVAL;
    31		}
    32	
    33		/* Validate the size reported in the parameter buffer header */
    34		buffer_size = header_size + buffer->data_size;
    35		if (buffer_size != payload_size) {
    36			dev_dbg(dev, "Data size %zu and payload size %zu are different\n",
    37				buffer_size, payload_size);
    38			return -EINVAL;
    39		}
    40	
    41		/* Driver-specific buffer validation. */
    42		if (buffer_validate) {
    43			ret = buffer_validate(dev, buffer);
    44			if (ret)
    45				return ret;
    46		}
    47	
    48		return 0;
    49	}
    50	EXPORT_SYMBOL_GPL(v4l2_params_buffer_validate);
    51	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-07-14  0:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-10 13:52 [PATCH v2 0/8] media: Introduce V4L2 extensible parameters Jacopo Mondi
2025-07-10 13:52 ` [PATCH v2 1/8] media: uapi: Introduce V4L2 extensible params Jacopo Mondi
2025-07-10 14:02   ` Dan Scally
2025-07-10 14:49   ` Dan Scally
2025-07-11  6:22     ` Jacopo Mondi
2025-07-10 13:52 ` [PATCH v2 2/8] media: uapi: Convert RkISP1 to " Jacopo Mondi
2025-07-10 14:04   ` Dan Scally
2025-07-10 13:52 ` [PATCH v2 3/8] media: uapi: Convert Amlogic C3 " Jacopo Mondi
2025-07-10 14:05   ` Dan Scally
2025-07-10 13:52 ` [PATCH v2 4/8] media: Documentation: uapi: Add V4L2 extensible parameters Jacopo Mondi
2025-07-10 14:06   ` Dan Scally
2025-07-10 13:52 ` [PATCH v2 5/8] media: v4l2-common: Introduce v4l2-params.c Jacopo Mondi
2025-07-10 14:18   ` Dan Scally
2025-07-14  0:51   ` kernel test robot [this message]
2025-07-10 13:52 ` [PATCH v2 6/8] media: rkisp1: Use v4l2-params for validation Jacopo Mondi
2025-07-14 14:17   ` Dan Scally
2025-08-19 14:24     ` Jacopo Mondi
2025-07-10 13:52 ` [PATCH v2 7/8] media: amlogic-c3: " Jacopo Mondi
2025-07-14 14:18   ` Dan Scally
2025-07-10 13:52 ` [PATCH v2 8/8] media: Documentation: kapi: Add v4l2 extensible parameters 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=202507140820.LDrwmHML-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dafna@fastmail.com \
    --cc=dan.scally@ideasonboard.com \
    --cc=heiko@sntech.de \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=keke.li@amlogic.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-rockchip@lists.infradead.org \
    --cc=mchehab@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakari.ailus@linux.intel.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;
as well as URLs for NNTP newsgroup(s).