[PATCH v5 6/7] media: staging: rkisp1: allow quantization setting by userspace on the isp source pad
kernel test robot
lkp at intel.com
Fri Jul 3 15:13:25 EDT 2020
Hi Dafna,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on next-20200703]
[cannot apply to v5.8-rc3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dafna-Hirschfeld/v4l2-add-support-for-colorspace-conversion-API-CSC-for-video-capture-and-subdevices/20200704-011401
base: git://linuxtv.org/media_tree.git master
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
drivers/staging/media/rkisp1/rkisp1-isp.c: In function 'rkisp1_isp_enum_mbus_code':
>> drivers/staging/media/rkisp1/rkisp1-isp.c:597:15: error: 'RKISP1_ISP_SD_SRC' undeclared (first use in this function); did you mean 'RKISP1_RSZ_PAD_SRC'?
597 | dir == RKISP1_ISP_SD_SRC)
| ^~~~~~~~~~~~~~~~~
| RKISP1_RSZ_PAD_SRC
drivers/staging/media/rkisp1/rkisp1-isp.c:597:15: note: each undeclared identifier is reported only once for each function it appears in
vim +597 drivers/staging/media/rkisp1/rkisp1-isp.c
562
563 /* ----------------------------------------------------------------------------
564 * Subdev pad operations
565 */
566
567 static int rkisp1_isp_enum_mbus_code(struct v4l2_subdev *sd,
568 struct v4l2_subdev_pad_config *cfg,
569 struct v4l2_subdev_mbus_code_enum *code)
570 {
571 unsigned int i, dir;
572 int pos = 0;
573
574 if (code->pad == RKISP1_ISP_PAD_SINK_VIDEO) {
575 dir = RKISP1_DIR_SINK;
576 } else if (code->pad == RKISP1_ISP_PAD_SOURCE_VIDEO) {
577 dir = RKISP1_DIR_SRC;
578 } else {
579 if (code->index > 0)
580 return -EINVAL;
581 code->code = MEDIA_BUS_FMT_FIXED;
582 return 0;
583 }
584
585 if (code->index >= ARRAY_SIZE(rkisp1_isp_formats))
586 return -EINVAL;
587
588 for (i = 0; i < ARRAY_SIZE(rkisp1_isp_formats); i++) {
589 const struct rkisp1_isp_mbus_info *fmt = &rkisp1_isp_formats[i];
590
591 if (fmt->direction & dir)
592 pos++;
593
594 if (code->index == pos - 1) {
595 code->code = fmt->mbus_code;
596 if (fmt->pixel_enc == V4L2_PIXEL_ENC_YUV &&
> 597 dir == RKISP1_ISP_SD_SRC)
598 code->flags =
599 V4L2_SUBDEV_MBUS_CODE_CSC_QUANTIZATION;
600 return 0;
601 }
602 }
603
604 return -EINVAL;
605 }
606
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 73547 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20200704/833ba508/attachment-0001.gz>
More information about the Linux-rockchip
mailing list