tree: git://git.monstr.eu/linux-2.6-microblaze for-test
head: 21f70b89dfef52f69ce1413868950cf5baf3868d
commit: ec8cdd50aa613113bb1480b0b103f42eea3f25d9 [218/1134] drivers: media: Customized
adv7511 for Xylon LogiCVC (deprecated)
config: alpha-randconfig-r013-20200917 (attached as .config)
compiler: alpha-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
git checkout ec8cdd50aa613113bb1480b0b103f42eea3f25d9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/media/i2c/adv7511-v4l2.c: In function
'adv7511_set_rgb_quantization_mode':
> drivers/media/i2c/adv7511-v4l2.c:427:9: warning: 'return'
with a value, in function returning void [-Wreturn-type]
427 | return 0;
| ^
drivers/media/i2c/adv7511-v4l2.c:422:13: note: declared here
422 | static void adv7511_set_rgb_quantization_mode(struct v4l2_subdev *sd, struct
v4l2_ctrl *ctrl)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/adv7511-v4l2.c: At top level:
> drivers/media/i2c/adv7511-v4l2.c:2251:21: warning: no previous
prototype for 'adv7511_subdev' [-Wmissing-prototypes]
2251 | struct
v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
| ^~~~~~~~~~~~~~
git remote add monstr-microblaze git://git.monstr.eu/linux-2.6-microblaze
git fetch --no-tags monstr-microblaze for-test
git checkout ec8cdd50aa613113bb1480b0b103f42eea3f25d9
vim +/return +427 drivers/media/i2c/adv7511-v4l2.c
421
422 static void adv7511_set_rgb_quantization_mode(struct v4l2_subdev *sd, struct
v4l2_ctrl *ctrl)
423 {
424 struct adv7511_state *state = get_adv7511_state(sd);
425
426 #ifdef XYLON_LOGICVC_INTG
427 return 0;
428 #endif
429
430 /* Only makes sense for RGB formats */
431 if (state->fmt_code != MEDIA_BUS_FMT_RGB888_1X24) {
432 /* so just keep quantization */
433 adv7511_csc_rgb_full2limit(sd, false);
434 return;
435 }
436
437 switch (ctrl->val) {
438 case V4L2_DV_RGB_RANGE_AUTO:
439 /* automatic */
440 if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
441 /* CE format, RGB limited range (16-235) */
442 adv7511_csc_rgb_full2limit(sd, true);
443 } else {
444 /* not CE format, RGB full range (0-255) */
445 adv7511_csc_rgb_full2limit(sd, false);
446 }
447 break;
448 case V4L2_DV_RGB_RANGE_LIMITED:
449 /* RGB limited range (16-235) */
450 adv7511_csc_rgb_full2limit(sd, true);
451 break;
452 case V4L2_DV_RGB_RANGE_FULL:
453 /* RGB full range (0-255) */
454 adv7511_csc_rgb_full2limit(sd, false);
455 break;
456 }
457 }
458
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org