[sailus-media-tree:ipu6 14/50] drivers/media/platform/broadcom/bcm2835-unicam.c:2721:34: warning: 'unicam_of_match' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://linuxtv.org/sailus/media_tree.git ipu6
head:   308898eb3af1c6530b122a01a5c4b38931717e70
commit: e8676f3614bd98086cd71e2d7379291f5329115f [14/50] media: bcm2835-unicam: Add support for CCP2/CSI2 camera interface
config: sh-randconfig-r111-20240430 (https://download.01.org/0day-ci/archive/20240430/202404302324.8aTC84kE-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240430/202404302324.8aTC84kE-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/202404302324.8aTC84kE-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/media/platform/broadcom/bcm2835-unicam.c:309:17: error: 'MEDIA_BUS_FMT_META_8' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_Y8_1X8'?
     309 |         .code = MEDIA_BUS_FMT_META_8,
         |                 ^~~~~~~~~~~~~~~~~~~~
         |                 MEDIA_BUS_FMT_Y8_1X8
   drivers/media/platform/broadcom/bcm2835-unicam.c:490:35: error: 'V4L2_META_FMT_GENERIC_8' undeclared here (not in a function); did you mean 'V4L2_META_FMT_UVC'?
     490 |                 .fourcc         = V4L2_META_FMT_GENERIC_8,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
         |                                   V4L2_META_FMT_UVC
   drivers/media/platform/broadcom/bcm2835-unicam.c:494:35: error: 'V4L2_META_FMT_GENERIC_CSI2_10' undeclared here (not in a function)
     494 |                 .fourcc         = V4L2_META_FMT_GENERIC_CSI2_10,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/broadcom/bcm2835-unicam.c:495:35: error: 'MEDIA_BUS_FMT_META_10' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_UV8_1X8'?
     495 |                 .code           = MEDIA_BUS_FMT_META_10,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
         |                                   MEDIA_BUS_FMT_UV8_1X8
   drivers/media/platform/broadcom/bcm2835-unicam.c:498:35: error: 'V4L2_META_FMT_GENERIC_CSI2_12' undeclared here (not in a function)
     498 |                 .fourcc         = V4L2_META_FMT_GENERIC_CSI2_12,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/broadcom/bcm2835-unicam.c:499:35: error: 'MEDIA_BUS_FMT_META_12' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_UV8_1X8'?
     499 |                 .code           = MEDIA_BUS_FMT_META_12,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
         |                                   MEDIA_BUS_FMT_UV8_1X8
   drivers/media/platform/broadcom/bcm2835-unicam.c:502:35: error: 'V4L2_META_FMT_GENERIC_CSI2_14' undeclared here (not in a function)
     502 |                 .fourcc         = V4L2_META_FMT_GENERIC_CSI2_14,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/broadcom/bcm2835-unicam.c:503:35: error: 'MEDIA_BUS_FMT_META_14' undeclared here (not in a function); did you mean 'MEDIA_BUS_FMT_UV8_1X8'?
     503 |                 .code           = MEDIA_BUS_FMT_META_14,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
         |                                   MEDIA_BUS_FMT_UV8_1X8
>> drivers/media/platform/broadcom/bcm2835-unicam.c:2721:34: warning: 'unicam_of_match' defined but not used [-Wunused-const-variable=]
    2721 | static const struct of_device_id unicam_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~


vim +/unicam_of_match +2721 drivers/media/platform/broadcom/bcm2835-unicam.c

  2720	
> 2721	static const struct of_device_id unicam_of_match[] = {
  2722		{ .compatible = "brcm,bcm2835-unicam", },
  2723		{ /* sentinel */ },
  2724	};
  2725	MODULE_DEVICE_TABLE(of, unicam_of_match);
  2726	

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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux