From: kbuild test robot <lkp@intel.com>
To: Yizhuo <yzhai003@ucr.edu>
Cc: kbuild-all@01.org, csong@cs.ucr.edu, zhiyunq@cs.ucr.edu,
Yizhuo <yzhai003@ucr.edu>, Mike Isely <isely@pobox.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [media] pvrusb2: qctrl.flag will be uninitlaized if cx2341x_ctrl_query() returns error code
Date: Fri, 23 Aug 2019 09:31:53 +0800 [thread overview]
Message-ID: <201908230954.ugiy6n6T%lkp@intel.com> (raw)
In-Reply-To: <20190821210931.9621-1-yzhai003@ucr.edu>
[-- Attachment #1: Type: text/plain, Size: 2794 bytes --]
Hi Yizhuo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[cannot apply to v5.3-rc5 next-20190822]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Yizhuo/pvrusb2-qctrl-flag-will-be-uninitlaized-if-cx2341x_ctrl_query-returns-error-code/20190823-075303
base: git://linuxtv.org/media_tree.git master
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
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
GCC_VERSION=7.4.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/media/usb/pvrusb2/pvrusb2-hdw.c: In function 'ctrl_cx2341x_getv4lflags':
>> drivers/media/usb/pvrusb2/pvrusb2-hdw.c:790:10: error: 'qctr' undeclared (first use in this function); did you mean 'qctrl'?
memset(&qctr, 0, sizeof(qctrl))
^~~~
qctrl
drivers/media/usb/pvrusb2/pvrusb2-hdw.c:790:10: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/media/usb/pvrusb2/pvrusb2-hdw.c:791:2: error: expected ';' before 'cx2341x_ctrl_query'
cx2341x_ctrl_query(&cptr->hdw->enc_ctl_state,&qctrl);
^~~~~~~~~~~~~~~~~~
vim +790 drivers/media/usb/pvrusb2/pvrusb2-hdw.c
784
785 static unsigned int ctrl_cx2341x_getv4lflags(struct pvr2_ctrl *cptr)
786 {
787 struct v4l2_queryctrl qctrl;
788 struct pvr2_ctl_info *info;
789 qctrl.id = cptr->info->v4l_id;
> 790 memset(&qctr, 0, sizeof(qctrl))
> 791 cx2341x_ctrl_query(&cptr->hdw->enc_ctl_state,&qctrl);
792 /* Strip out the const so we can adjust a function pointer. It's
793 OK to do this here because we know this is a dynamically created
794 control, so the underlying storage for the info pointer is (a)
795 private to us, and (b) not in read-only storage. Either we do
796 this or we significantly complicate the underlying control
797 implementation. */
798 info = (struct pvr2_ctl_info *)(cptr->info);
799 if (qctrl.flags & V4L2_CTRL_FLAG_READ_ONLY) {
800 if (info->set_value) {
801 info->set_value = NULL;
802 }
803 } else {
804 if (!(info->set_value)) {
805 info->set_value = ctrl_cx2341x_set;
806 }
807 }
808 return qctrl.flags;
809 }
810
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51782 bytes --]
next prev parent reply other threads:[~2019-08-23 1:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-21 21:09 Yizhuo
2019-08-23 1:31 ` kbuild test robot [this message]
2019-08-25 17:47 ` isely
2019-08-26 12:08 ` Hans Verkuil
2019-08-26 23:32 ` Yizhuo Zhai
2019-08-26 23:55 Yizhuo
2019-08-26 23:56 ` isely
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=201908230954.ugiy6n6T%lkp@intel.com \
--to=lkp@intel.com \
--cc=csong@cs.ucr.edu \
--cc=isely@pobox.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=yzhai003@ucr.edu \
--cc=zhiyunq@cs.ucr.edu \
/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®