public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
* [xlnx:xlnx_rebase_v5.4 218/707] drivers/media/i2c/adv7511-v4l2.c:427:9: warning: 'return' with a value, in function returning void
@ 2020-01-10 16:22 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-10 16:22 UTC (permalink / raw)
  To: Radhey Shyam Pandey
  Cc: Michal Simek, kbuild-all, Davor Joja, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 2485 bytes --]

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   1e95d891a328c985e29743b334c8368a76c24b18
commit: c4f81de31e0a95f6016daf5f15b75b1c4ba48c4e [218/707] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: x86_64-randconfig-a003-20200109 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout c4f81de31e0a95f6016daf5f15b75b1c4ba48c4e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@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
     return 0;
            ^
   drivers/media/i2c/adv7511-v4l2.c:422:13: note: declared here
    static void adv7511_set_rgb_quantization_mode(struct v4l2_subdev *sd, struct v4l2_ctrl *ctrl)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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 kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34005 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

only message in thread, other threads:[~2020-01-10 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-10 16:22 [xlnx:xlnx_rebase_v5.4 218/707] drivers/media/i2c/adv7511-v4l2.c:427:9: warning: 'return' with a value, in function returning void kbuild test robot

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