From: kbuild test robot <lkp@intel.com>
To: Vlad Zolotarov <vladz@cloudius-systems.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, mst@redhat.com,
hjk@hansjkoch.de, regkh@linuxfoundation.org, corbet@lwn.net,
bruce.richardson@intel.com, avi@cloudius-systems.com,
gleb@cloudius-systems.com, stephen@networkplumber.org,
alexander.duyck@gmail.com,
Vlad Zolotarov <vladz@cloudius-systems.com>
Subject: Re: [PATCH v1 2/3] uio_pci_generic: add MSI/MSI-X support
Date: Mon, 5 Oct 2015 00:58:59 +0800 [thread overview]
Message-ID: <201510050037.OLQ2QjiG%fengguang.wu@intel.com> (raw)
In-Reply-To: <1443977019-1513-3-git-send-email-vladz@cloudius-systems.com>
[-- Attachment #1: Type: text/plain, Size: 2262 bytes --]
Hi Vlad,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
config: xtensa-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All error/warnings (new ones prefixed by >>):
drivers/uio/uio_pci_generic.c: In function 'uio_pci_generic_ioctl':
>> drivers/uio/uio_pci_generic.c:189:3: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
if (copy_from_user(&hdr, (void __user *)arg, sizeof(hdr)))
^
>> drivers/uio/uio_pci_generic.c:208:4: error: implicit declaration of function 'put_user' [-Werror=implicit-function-declaration]
err = put_user(0, (u32 __user *)arg);
^
cc1: some warnings being treated as errors
vim +/copy_from_user +189 drivers/uio/uio_pci_generic.c
183 struct uio_pci_generic_dev *gdev = to_uio_pci_generic_dev(info);
184 struct uio_pci_generic_irq_set hdr;
185 int err;
186
187 switch (cmd) {
188 case UIO_PCI_GENERIC_IRQ_SET:
> 189 if (copy_from_user(&hdr, (void __user *)arg, sizeof(hdr)))
190 return -EFAULT;
191
192 /* Locking is needed to ensure two things:
193 * 1) Two IRQ_SET ioctl()'s are not running in parallel.
194 * 2) IRQ_SET ioctl() is not running in parallel with remove().
195 */
196 mutex_lock(&gdev->msix_state_lock);
197 if (gdev->int_mode != UIO_INT_MODE_MSIX) {
198 mutex_unlock(&gdev->msix_state_lock);
199 return -EOPNOTSUPP;
200 }
201
202 err = set_irq_eventfd(gdev, hdr.vec, hdr.fd);
203 mutex_unlock(&gdev->msix_state_lock);
204
205 break;
206 case UIO_PCI_GENERIC_IRQ_NUM_GET:
207 if (gdev->int_mode == UIO_INT_MODE_NONE)
> 208 err = put_user(0, (u32 __user *)arg);
209 else if (gdev->int_mode != UIO_INT_MODE_MSIX)
210 err = put_user(1, (u32 __user *)arg);
211 else
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 42410 bytes --]
next prev parent reply other threads:[~2015-10-04 16:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-04 16:43 [PATCH v1 0/3] uio: add MSI/MSI-X support to uio_pci_generic driver Vlad Zolotarov
2015-10-04 16:43 ` [PATCH v1 1/3] uio: add ioctl support Vlad Zolotarov
2015-10-04 16:43 ` [PATCH v1 2/3] uio_pci_generic: add MSI/MSI-X support Vlad Zolotarov
2015-10-04 16:58 ` kbuild test robot [this message]
2015-10-04 18:01 ` kbuild test robot
2015-10-04 16:43 ` [PATCH v1 3/3] Documentation: update uio-howto Vlad Zolotarov
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=201510050037.OLQ2QjiG%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=alexander.duyck@gmail.com \
--cc=avi@cloudius-systems.com \
--cc=bruce.richardson@intel.com \
--cc=corbet@lwn.net \
--cc=gleb@cloudius-systems.com \
--cc=hjk@hansjkoch.de \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=regkh@linuxfoundation.org \
--cc=stephen@networkplumber.org \
--cc=vladz@cloudius-systems.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®