[xlnx:master 11563/12268] drivers/media/i2c/adv7511-v4l2.c:427:2: error: void function 'adv7511_set_rgb_quantization_mode' should not return a value
From: kernel test robot <hidden>
Date: 2021-05-28 18:49:31
Also in:
oe-kbuild-all
Hi Vishal, First bad commit (maybe != root cause): tree: https://github.com/Xilinx/linux-xlnx master head: 75fbe0f5df29b9b5d54ecfeea27f5a80848aa87f commit: be1a315c549bd2d6be07219a14335d2e156db988 [11563/12268] staging: xlnxsync: Fix the uapi header license config: x86_64-randconfig-a016-20210528 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6505c630407c5feec818f0bb1c284f9eeebf2071) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/Xilinx/linux-xlnx/commit/be1a315c549bd2d6be07219a14335d2e156db988 git remote add xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xlnx master git checkout be1a315c549bd2d6be07219a14335d2e156db988 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>):
quoted
drivers/media/i2c/adv7511-v4l2.c:427:2: error: void function 'adv7511_set_rgb_quantization_mode' should not return a value [-Wreturn-type]
return 0;
^ ~
drivers/media/i2c/adv7511-v4l2.c:2251:21: warning: no previous prototype for function 'adv7511_subdev' [-Wmissing-prototypes]
struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
^
drivers/media/i2c/adv7511-v4l2.c:2251:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
^
static
1 warning and 1 error generated.
vim +/adv7511_set_rgb_quantization_mode +427 drivers/media/i2c/adv7511-v4l2.c
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 421
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 422 static void adv7511_set_rgb_quantization_mode(struct v4l2_subdev *sd, struct v4l2_ctrl *ctrl)
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 423 {
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 424 struct adv7511_state *state = get_adv7511_state(sd);
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 425
c2644339194bd7b drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 426 #ifdef XYLON_LOGICVC_INTG
c2644339194bd7b drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 @427 return 0;
c2644339194bd7b drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 428 #endif
c2644339194bd7b drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 429
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 430 /* Only makes sense for RGB formats */
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 431 if (state->fmt_code != MEDIA_BUS_FMT_RGB888_1X24) {
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 432 /* so just keep quantization */
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 433 adv7511_csc_rgb_full2limit(sd, false);
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 434 return;
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 435 }
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 436
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 437 switch (ctrl->val) {
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 438 case V4L2_DV_RGB_RANGE_AUTO:
0a25a0125194639 drivers/media/i2c/adv7511.c Hans Verkuil 2016-06-28 439 /* automatic */
680fee04a227d60 drivers/media/i2c/adv7511.c Hans Verkuil 2015-03-20 440 if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
680fee04a227d60 drivers/media/i2c/adv7511.c Hans Verkuil 2015-03-20 441 /* CE format, RGB limited range (16-235) */
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 442 adv7511_csc_rgb_full2limit(sd, true);
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 443 } else {
680fee04a227d60 drivers/media/i2c/adv7511.c Hans Verkuil 2015-03-20 444 /* not CE format, RGB full range (0-255) */
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 445 adv7511_csc_rgb_full2limit(sd, false);
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 446 }
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 447 break;
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 448 case V4L2_DV_RGB_RANGE_LIMITED:
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 449 /* RGB limited range (16-235) */
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 450 adv7511_csc_rgb_full2limit(sd, true);
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 451 break;
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 452 case V4L2_DV_RGB_RANGE_FULL:
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 453 /* RGB full range (0-255) */
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 454 adv7511_csc_rgb_full2limit(sd, false);
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 455 break;
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 456 }
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 457 }
5a544cce2177fe3 drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 458
:::::: The code at line 427 was first introduced by commit
:::::: c2644339194bd7be4ce6023d72f5e7a03f55ef6b drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
:::::: TO: Radhey Shyam Pandey [off-list ref]
:::::: CC: Michal Simek [off-list ref]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 38802 bytes
- (unnamed) [text/plain] 176 bytes · preview