Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH] media: cobalt: bound the dv timings to the descriptor buffers
       [not found] <20260918072526.2478529-1-guozh23@xiaopeng.com>
@ 2026-09-18 23:34 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-18 23:34 UTC (permalink / raw)
  To: Guo Zihao, Mauro Carvalho Chehab, Hans Verkuil
  Cc: llvm, oe-kbuild-all, linux-media, linux-kernel, Liu Chao

Hi Guo,

kernel test robot noticed the following build errors:

[auto build test ERROR on linuxtv-media-pending/master]
[also build test ERROR on media-tree/master sailus-media-tree/master linus/master v7.3-rc3 next-20260918]
[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/Guo-Zihao/media-cobalt-bound-the-dv-timings-to-the-descriptor-buffers/20260918-152526
base:   https://git.linuxtv.org/media-ci/media-pending.git master
patch link:    https://lore.kernel.org/r/20260918072526.2478529-1-guozh23%40xiaopeng.com
patch subject: [PATCH] media: cobalt: bound the dv timings to the descriptor buffers
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260919/202609190745.z2mFq2RW-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 7252edd9aa82ef1c570ff6694ef7f4763a8a5d2f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260919/202609190745.z2mFq2RW-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/202609190745.z2mFq2RW-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/media/pci/cobalt/cobalt-v4l2.c:635:3: error: use of undeclared identifier 'cobalt'
     635 |                 cobalt_info("timings %ux%u out of range\n",
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     636 |                             timings->bt.width, timings->bt.height);
         |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/pci/cobalt/cobalt-driver.h:160:45: note: expanded from macro 'cobalt_info'
     160 | #define cobalt_info(fmt, arg...) v4l2_info(&cobalt->v4l2_dev, fmt, ## arg)
         |                                             ^~~~~~
   1 error generated.


vim +/cobalt +635 drivers/media/pci/cobalt/cobalt-v4l2.c

   615	
   616	static int cobalt_s_dv_timings(struct file *file, void *priv,
   617					    struct v4l2_dv_timings *timings)
   618	{
   619		struct cobalt_stream *s = video_drvdata(file);
   620		int err;
   621	
   622		if (s->input == 1) {
   623			*timings = cea1080p60;
   624			return 0;
   625		}
   626	
   627		if (v4l2_match_dv_timings(timings, &s->timings, 0, true))
   628			return 0;
   629	
   630		if (vb2_is_busy(&s->q))
   631			return -EBUSY;
   632	
   633		if (timings->bt.width > COBALT_MAX_WIDTH ||
   634		    timings->bt.height > COBALT_MAX_HEIGHT) {
 > 635			cobalt_info("timings %ux%u out of range\n",
   636				    timings->bt.width, timings->bt.height);
   637			return -EINVAL;
   638		}
   639	
   640		err = v4l2_subdev_call(s->sd,
   641				pad, s_dv_timings, 0, timings);
   642		if (!err) {
   643			s->timings = *timings;
   644			s->width = timings->bt.width;
   645			s->height = timings->bt.height;
   646			s->stride = timings->bt.width * s->bpp;
   647		}
   648		return err;
   649	}
   650	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-18 23:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260918072526.2478529-1-guozh23@xiaopeng.com>
2026-09-18 23:34 ` [PATCH] media: cobalt: bound the dv timings to the descriptor buffers kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox