Re: [PATCH] media: bcm2835-unicam: Fix querycap multiple caps

From: kernel test robot

Date: Fri Jun 12 2026 - 00:32:46 EST


Hi Eugen,

kernel test robot noticed the following build errors:

[auto build test ERROR on a87737435cfa134f9cdcc696ba3080759d04cf72]

url: https://github.com/intel-lab-lkp/linux/commits/Eugen-Hristev/media-bcm2835-unicam-Fix-querycap-multiple-caps/20260611-141320
base: a87737435cfa134f9cdcc696ba3080759d04cf72
patch link: https://lore.kernel.org/r/20260611-bcmpiqcap-v1-1-10cf7fb438df%40kernel.org
patch subject: [PATCH] media: bcm2835-unicam: Fix querycap multiple caps
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20260612/202606121218.nV4fMXUr-lkp@xxxxxxxxx/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260612/202606121218.nV4fMXUr-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606121218.nV4fMXUr-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/media/platform/broadcom/bcm2835-unicam.c: In function 'unicam_querycap':
>> drivers/media/platform/broadcom/bcm2835-unicam.c:1836:27: error: 'node' undeclared (first use in this function)
1836 | if (is_image_node(node))
| ^~~~
drivers/media/platform/broadcom/bcm2835-unicam.c:1836:27: note: each undeclared identifier is reported only once for each function it appears in


vim +/node +1836 drivers/media/platform/broadcom/bcm2835-unicam.c

1825
1826 /* -----------------------------------------------------------------------------
1827 * V4L2 video device operations
1828 */
1829
1830 static int unicam_querycap(struct file *file, void *priv,
1831 struct v4l2_capability *cap)
1832 {
1833 strscpy(cap->driver, UNICAM_MODULE_NAME, sizeof(cap->driver));
1834 strscpy(cap->card, UNICAM_MODULE_NAME, sizeof(cap->card));
1835
> 1836 if (is_image_node(node))
1837 cap->capabilities |= V4L2_CAP_VIDEO_CAPTURE;
1838 else
1839 cap->capabilities |= V4L2_CAP_META_CAPTURE;
1840
1841 return 0;
1842 }
1843

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