From: kbuild test robot <lkp@intel.com>
To: Alberto Ladron <alberto.ladron@gmail.com>
Cc: kbuild-all@01.org, zaitcev@redhat.com,
gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org,
Alberto Ladron <alberto.ladron@gmail.com>
Subject: Re: [PATCH] usb: class: usblp: Fixed assignments inside if conditions
Date: Tue, 16 May 2017 13:44:47 +0800 [thread overview]
Message-ID: <201705161341.bzliJz8X%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170513055024.27590-1-alberto.ladron@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2084 bytes --]
Hi Alberto,
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.12-rc1 next-20170515]
[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/Alberto-Ladron/usb-class-usblp-Fixed-assignments-inside-if-conditions/20170513-140010
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers//usb/class/usblp.c: In function 'usblp_submit_read':
>> drivers//usb/class/usblp.c:1021:6: error: 'rv' undeclared (first use in this function)
if (rv < 0) {
^~
drivers//usb/class/usblp.c:1021:6: note: each undeclared identifier is reported only once for each function it appears in
vim +/rv +1021 drivers//usb/class/usblp.c
1005 urb = usb_alloc_urb(0, GFP_KERNEL);
1006 if (urb == NULL)
1007 goto raise_urb;
1008
1009 usb_fill_bulk_urb(urb, usblp->dev,
1010 usb_rcvbulkpipe(usblp->dev,
1011 usblp->protocol[usblp->current_protocol].epread->bEndpointAddress),
1012 usblp->readbuf, USBLP_BUF_SIZE_IN,
1013 usblp_bulk_read, usblp);
1014 usb_anchor_urb(urb, &usblp->urbs);
1015
1016 spin_lock_irqsave(&usblp->lock, flags);
1017 usblp->readcount = 0; /* XXX Why here? */
1018 usblp->rcomplete = 0;
1019 spin_unlock_irqrestore(&usblp->lock, flags);
1020 rc = usb_submit_urb(urb, GFP_KERNEL);
> 1021 if (rv < 0) {
1022 dev_dbg(&usblp->intf->dev, "error submitting urb (%d)\n", rc);
1023 spin_lock_irqsave(&usblp->lock, flags);
1024 usblp->rstatus = rc;
1025 usblp->rcomplete = 1;
1026 spin_unlock_irqrestore(&usblp->lock, flags);
1027 goto raise_submit;
1028 }
1029
---
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: 38905 bytes --]
next prev parent reply other threads:[~2017-05-16 5:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 5:50 Alberto Ladron
2017-05-16 5:44 ` kbuild test robot [this message]
2017-05-17 0:37 ` Alberto Ladron
2017-05-17 8:09 ` Greg KH
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=201705161341.bzliJz8X%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=alberto.ladron@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=zaitcev@redhat.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
all inboxes | Powered by JetHome®