mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Stanimir Varbanov <stanimir.varbanov@linaro.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Cc: kbuild-all@lists.01.org, Hans Verkuil <hverkuil@xs4all.nl>,
	Ezequiel Garcia <ezequiel@collabora.com>,
	Maheshwar Ajja <majja@codeaurora.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Stanimir Varbanov <stanimir.varbanov@linaro.org>
Subject: Re: [PATCH 2/4] venus: venc: Add support for constant quality control
Date: Tue, 16 Jun 2020 23:16:45 +0800	[thread overview]
Message-ID: <202006162306.T8fBlVkP%lkp@intel.com> (raw)
In-Reply-To: <20200616123001.11321-3-stanimir.varbanov@linaro.org>

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

Hi Stanimir,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on linux/master linus/master v5.8-rc1 next-20200616]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Stanimir-Varbanov/Add-two-new-v4l-controls-and-implementation/20200616-203311
base:   git://linuxtv.org/media_tree.git master
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/media/platform/qcom/venus/hfi_cmds.c: In function 'pkt_session_set_property_6xx':
>> drivers/media/platform/qcom/venus/hfi_cmds.c:1225:8: warning: variable 'prop_data' set but not used [-Wunused-but-set-variable]
1225 |  void *prop_data;
|        ^~~~~~~~~

vim +/prop_data +1225 drivers/media/platform/qcom/venus/hfi_cmds.c

  1220	
  1221	static int
  1222	pkt_session_set_property_6xx(struct hfi_session_set_property_pkt *pkt,
  1223				     void *cookie, u32 ptype, void *pdata)
  1224	{
> 1225		void *prop_data;
  1226	
  1227		if (!pkt || !cookie || !pdata)
  1228			return -EINVAL;
  1229	
  1230		prop_data = &pkt->data[1];
  1231	
  1232		pkt->shdr.hdr.size = sizeof(*pkt);
  1233		pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
  1234		pkt->shdr.session_id = hash32_ptr(cookie);
  1235		pkt->num_properties = 1;
  1236		pkt->data[0] = ptype;
  1237	
  1238		switch (ptype) {
  1239		case HFI_PROPERTY_PARAM_VENC_RATE_CONTROL: {
  1240			u32 *in = pdata;
  1241	
  1242			switch (*in) {
  1243			case HFI_RATE_CONTROL_OFF:
  1244			case HFI_RATE_CONTROL_CBR_CFR:
  1245			case HFI_RATE_CONTROL_CBR_VFR:
  1246			case HFI_RATE_CONTROL_VBR_CFR:
  1247			case HFI_RATE_CONTROL_VBR_VFR:
  1248			case HFI_RATE_CONTROL_CQ:
  1249				break;
  1250			default:
  1251				return -EINVAL;
  1252			}
  1253	
  1254			pkt->data[1] = *in;
  1255			pkt->shdr.hdr.size += sizeof(u32) * 2;
  1256			break;
  1257		}
  1258		default:
  1259			return pkt_session_set_property_4xx(pkt, cookie, ptype, pdata);
  1260		}
  1261	
  1262		return 0;
  1263	}
  1264	

---
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: 64529 bytes --]

  reply	other threads:[~2020-06-16 15:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16 12:29 [PATCH 0/4] Add two new v4l controls and implementation Stanimir Varbanov
2020-06-16 12:29 ` [PATCH 1/4] media: v4l2-ctrls: Add encoder constant quality control Stanimir Varbanov
2020-06-16 12:29 ` [PATCH 2/4] venus: venc: Add support for " Stanimir Varbanov
2020-06-16 15:16   ` kernel test robot [this message]
2020-06-16 12:30 ` [PATCH 3/4] v4l2-ctrl: Add control for intra only decode Stanimir Varbanov
2020-06-19 12:39   ` Nicolas Dufresne
2020-06-19 18:48     ` Stanimir Varbanov
2020-06-16 12:30 ` [PATCH 4/4] venus: vdec: Add support for decode intra frames only Stanimir Varbanov

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=202006162306.T8fBlVkP%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ezequiel@collabora.com \
    --cc=hverkuil@xs4all.nl \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=majja@codeaurora.org \
    --cc=mchehab@kernel.org \
    --cc=stanimir.varbanov@linaro.org \
    /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

all inboxes | Powered by JetHome®