linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Cc: Michal Simek <monstr@monstr.eu>,
	kbuild-all@lists.01.org, Davor Joja <davor.joja@logicbricks.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [kbuild] [xlnx:xlnx_rebase_v5.4 217/1297] drivers/media/i2c/adv7511-v4l2.c:427:9: warning: 'return' with a value, in function returning void
Date: Tue, 12 May 2020 20:35:12 +0800	[thread overview]
Message-ID: <20200512123512.GC22126@intel.com> (raw)

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

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   22b71b41620dac13c69267d2b7898ebfb14c954e
commit: 9836a252284b997aacd6b86766514a0bb84b4f43 [217/1297] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: h8300-randconfig-r004-20200512 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9836a252284b997aacd6b86766514a0bb84b4f43
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=h8300 

If you fix the issue, kindly add following tag as appropriate
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 [-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)
|             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# https://github.com/Xilinx/linux-xlnx/commit/9836a252284b997aacd6b86766514a0bb84b4f43
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git remote update xlnx
git checkout 9836a252284b997aacd6b86766514a0bb84b4f43
vim +/return +427 drivers/media/i2c/adv7511-v4l2.c

5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  421  
0a25a012519463 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)
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  423  {
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  424  	struct adv7511_state *state = get_adv7511_state(sd);
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  425  
9836a252284b99 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  426  #ifdef XYLON_LOGICVC_INTG
9836a252284b99 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 @427  	return 0;
9836a252284b99 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  428  #endif
9836a252284b99 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  429  
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  430  	/* Only makes sense for RGB formats */
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  431  	if (state->fmt_code != MEDIA_BUS_FMT_RGB888_1X24) {
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  432  		/* so just keep quantization */
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  433  		adv7511_csc_rgb_full2limit(sd, false);
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  434  		return;
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  435  	}
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  436  
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  437  	switch (ctrl->val) {
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  438  	case V4L2_DV_RGB_RANGE_AUTO:
0a25a012519463 drivers/media/i2c/adv7511.c      Hans Verkuil        2016-06-28  439  		/* automatic */
680fee04a227d6 drivers/media/i2c/adv7511.c      Hans Verkuil        2015-03-20  440  		if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
680fee04a227d6 drivers/media/i2c/adv7511.c      Hans Verkuil        2015-03-20  441  			/* CE format, RGB limited range (16-235) */
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  442  			adv7511_csc_rgb_full2limit(sd, true);
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  443  		} else {
680fee04a227d6 drivers/media/i2c/adv7511.c      Hans Verkuil        2015-03-20  444  			/* not CE format, RGB full range (0-255) */
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  445  			adv7511_csc_rgb_full2limit(sd, false);
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  446  		}
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  447  		break;
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  448  	case V4L2_DV_RGB_RANGE_LIMITED:
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  449  		/* RGB limited range (16-235) */
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  450  		adv7511_csc_rgb_full2limit(sd, true);
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  451  		break;
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  452  	case V4L2_DV_RGB_RANGE_FULL:
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  453  		/* RGB full range (0-255) */
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  454  		adv7511_csc_rgb_full2limit(sd, false);
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  455  		break;
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  456  	}
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  457  }
5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  458  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

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

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org

[-- Attachment #4: 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

                 reply	other threads:[~2020-05-12 12:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200512123512.GC22126@intel.com \
    --to=lkp@intel.com \
    --cc=davor.joja@logicbricks.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=monstr@monstr.eu \
    --cc=radhey.shyam.pandey@xilinx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).