From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC v4 07/11] vduse: Introduce VDUSE - vDPA Device in Userspace
Date: Tue, 23 Feb 2021 23:44:55 +0800 [thread overview]
Message-ID: <202102232317.DAD0kH5P-lkp@intel.com> (raw)
In-Reply-To: <20210223115048.435-8-xieyongji@bytedance.com>
[-- Attachment #1: Type: text/plain, Size: 7543 bytes --]
Hi Xie,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on vhost/linux-next]
[also build test WARNING on next-20210223]
[cannot apply to lwn/docs-next linus/master v5.11]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xie-Yongji/Introduce-VDUSE-vDPA-Device-in-Userspace/20210223-200222
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: mips-allyesconfig (attached as .config)
compiler: mips-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
# https://github.com/0day-ci/linux/commit/5d6a89bab8457978e07279c3326381353c1474f3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xie-Yongji/Introduce-VDUSE-vDPA-Device-in-Userspace/20210223-200222
git checkout 5d6a89bab8457978e07279c3326381353c1474f3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
drivers/vdpa/vdpa_user/iova_domain.c: In function 'vduse_domain_release':
drivers/vdpa/vdpa_user/iova_domain.c:416:2: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
416 | vfree(domain->bounce_pages);
| ^~~~~
| kvfree
drivers/vdpa/vdpa_user/iova_domain.c: In function 'vduse_domain_create':
drivers/vdpa/vdpa_user/iova_domain.c:452:25: error: implicit declaration of function 'vzalloc'; did you mean 'kvzalloc'? [-Werror=implicit-function-declaration]
452 | domain->bounce_pages = vzalloc(bounce_pfns * sizeof(struct page *));
| ^~~~~~~
| kvzalloc
>> drivers/vdpa/vdpa_user/iova_domain.c:452:23: warning: assignment to 'struct page **' from 'int' makes pointer from integer without a cast [-Wint-conversion]
452 | domain->bounce_pages = vzalloc(bounce_pfns * sizeof(struct page *));
| ^
cc1: some warnings being treated as errors
vim +452 drivers/vdpa/vdpa_user/iova_domain.c
97cdf3b268ace7 Xie Yongji 2021-02-23 407
97cdf3b268ace7 Xie Yongji 2021-02-23 408 static int vduse_domain_release(struct inode *inode, struct file *file)
97cdf3b268ace7 Xie Yongji 2021-02-23 409 {
97cdf3b268ace7 Xie Yongji 2021-02-23 410 struct vduse_iova_domain *domain = file->private_data;
97cdf3b268ace7 Xie Yongji 2021-02-23 411
97cdf3b268ace7 Xie Yongji 2021-02-23 412 vduse_domain_free_bounce_pages(domain, 0, domain->bounce_size);
97cdf3b268ace7 Xie Yongji 2021-02-23 413 put_iova_domain(&domain->stream_iovad);
97cdf3b268ace7 Xie Yongji 2021-02-23 414 put_iova_domain(&domain->consistent_iovad);
97cdf3b268ace7 Xie Yongji 2021-02-23 415 vhost_iotlb_free(domain->iotlb);
97cdf3b268ace7 Xie Yongji 2021-02-23 @416 vfree(domain->bounce_pages);
97cdf3b268ace7 Xie Yongji 2021-02-23 417 kfree(domain);
97cdf3b268ace7 Xie Yongji 2021-02-23 418
97cdf3b268ace7 Xie Yongji 2021-02-23 419 return 0;
97cdf3b268ace7 Xie Yongji 2021-02-23 420 }
97cdf3b268ace7 Xie Yongji 2021-02-23 421
97cdf3b268ace7 Xie Yongji 2021-02-23 422 static const struct file_operations vduse_domain_fops = {
97cdf3b268ace7 Xie Yongji 2021-02-23 423 .mmap = vduse_domain_mmap,
97cdf3b268ace7 Xie Yongji 2021-02-23 424 .release = vduse_domain_release,
97cdf3b268ace7 Xie Yongji 2021-02-23 425 };
97cdf3b268ace7 Xie Yongji 2021-02-23 426
97cdf3b268ace7 Xie Yongji 2021-02-23 427 void vduse_domain_destroy(struct vduse_iova_domain *domain)
97cdf3b268ace7 Xie Yongji 2021-02-23 428 {
97cdf3b268ace7 Xie Yongji 2021-02-23 429 fput(domain->file);
97cdf3b268ace7 Xie Yongji 2021-02-23 430 }
97cdf3b268ace7 Xie Yongji 2021-02-23 431
97cdf3b268ace7 Xie Yongji 2021-02-23 432 struct vduse_iova_domain *
97cdf3b268ace7 Xie Yongji 2021-02-23 433 vduse_domain_create(unsigned long iova_limit, size_t bounce_size)
97cdf3b268ace7 Xie Yongji 2021-02-23 434 {
97cdf3b268ace7 Xie Yongji 2021-02-23 435 struct vduse_iova_domain *domain;
97cdf3b268ace7 Xie Yongji 2021-02-23 436 struct file *file;
97cdf3b268ace7 Xie Yongji 2021-02-23 437 unsigned long bounce_pfns = PAGE_ALIGN(bounce_size) >> PAGE_SHIFT;
97cdf3b268ace7 Xie Yongji 2021-02-23 438
97cdf3b268ace7 Xie Yongji 2021-02-23 439 if (iova_limit <= bounce_size)
97cdf3b268ace7 Xie Yongji 2021-02-23 440 return NULL;
97cdf3b268ace7 Xie Yongji 2021-02-23 441
97cdf3b268ace7 Xie Yongji 2021-02-23 442 domain = kzalloc(sizeof(*domain), GFP_KERNEL);
97cdf3b268ace7 Xie Yongji 2021-02-23 443 if (!domain)
97cdf3b268ace7 Xie Yongji 2021-02-23 444 return NULL;
97cdf3b268ace7 Xie Yongji 2021-02-23 445
97cdf3b268ace7 Xie Yongji 2021-02-23 446 domain->iotlb = vhost_iotlb_alloc(0, 0);
97cdf3b268ace7 Xie Yongji 2021-02-23 447 if (!domain->iotlb)
97cdf3b268ace7 Xie Yongji 2021-02-23 448 goto err_iotlb;
97cdf3b268ace7 Xie Yongji 2021-02-23 449
97cdf3b268ace7 Xie Yongji 2021-02-23 450 domain->iova_limit = iova_limit;
97cdf3b268ace7 Xie Yongji 2021-02-23 451 domain->bounce_size = PAGE_ALIGN(bounce_size);
97cdf3b268ace7 Xie Yongji 2021-02-23 @452 domain->bounce_pages = vzalloc(bounce_pfns * sizeof(struct page *));
97cdf3b268ace7 Xie Yongji 2021-02-23 453 if (!domain->bounce_pages)
97cdf3b268ace7 Xie Yongji 2021-02-23 454 goto err_page;
97cdf3b268ace7 Xie Yongji 2021-02-23 455
97cdf3b268ace7 Xie Yongji 2021-02-23 456 file = anon_inode_getfile("[vduse-domain]", &vduse_domain_fops,
97cdf3b268ace7 Xie Yongji 2021-02-23 457 domain, O_RDWR);
97cdf3b268ace7 Xie Yongji 2021-02-23 458 if (IS_ERR(file))
97cdf3b268ace7 Xie Yongji 2021-02-23 459 goto err_file;
97cdf3b268ace7 Xie Yongji 2021-02-23 460
97cdf3b268ace7 Xie Yongji 2021-02-23 461 domain->file = file;
97cdf3b268ace7 Xie Yongji 2021-02-23 462 spin_lock_init(&domain->iotlb_lock);
97cdf3b268ace7 Xie Yongji 2021-02-23 463 init_iova_domain(&domain->stream_iovad,
97cdf3b268ace7 Xie Yongji 2021-02-23 464 IOVA_ALLOC_SIZE, IOVA_START_PFN);
97cdf3b268ace7 Xie Yongji 2021-02-23 465 init_iova_domain(&domain->consistent_iovad,
97cdf3b268ace7 Xie Yongji 2021-02-23 466 PAGE_SIZE, bounce_pfns);
97cdf3b268ace7 Xie Yongji 2021-02-23 467
97cdf3b268ace7 Xie Yongji 2021-02-23 468 return domain;
97cdf3b268ace7 Xie Yongji 2021-02-23 469 err_file:
97cdf3b268ace7 Xie Yongji 2021-02-23 470 vfree(domain->bounce_pages);
97cdf3b268ace7 Xie Yongji 2021-02-23 471 err_page:
97cdf3b268ace7 Xie Yongji 2021-02-23 472 vhost_iotlb_free(domain->iotlb);
97cdf3b268ace7 Xie Yongji 2021-02-23 473 err_iotlb:
97cdf3b268ace7 Xie Yongji 2021-02-23 474 kfree(domain);
97cdf3b268ace7 Xie Yongji 2021-02-23 475 return NULL;
97cdf3b268ace7 Xie Yongji 2021-02-23 476 }
97cdf3b268ace7 Xie Yongji 2021-02-23 477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69944 bytes --]
next prev parent reply other threads:[~2021-02-23 15:44 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 11:50 [RFC v4 00/11] Introduce VDUSE - vDPA Device in Userspace Xie Yongji
2021-02-23 11:50 ` [RFC v4 01/11] eventfd: Increase the recursion depth of eventfd_signal() Xie Yongji
2021-03-02 6:44 ` Jason Wang
2021-03-02 6:44 ` Jason Wang
2021-03-02 10:32 ` Yongji Xie
2021-02-23 11:50 ` [RFC v4 02/11] vhost-vdpa: protect concurrent access to vhost device iotlb Xie Yongji
2021-03-02 6:47 ` Jason Wang
2021-03-02 6:47 ` Jason Wang
2021-03-02 10:20 ` Yongji Xie
2021-02-23 11:50 ` [RFC v4 03/11] vhost-iotlb: Add an opaque pointer for vhost IOTLB Xie Yongji
2021-03-02 6:49 ` Jason Wang
2021-03-02 6:49 ` Jason Wang
2021-02-23 11:50 ` [RFC v4 04/11] vdpa: Add an opaque pointer for vdpa_config_ops.dma_map() Xie Yongji
2021-03-02 6:50 ` Jason Wang
2021-03-02 6:50 ` Jason Wang
2021-02-23 11:50 ` [RFC v4 05/11] vdpa: Support transferring virtual addressing during DMA mapping Xie Yongji
2021-02-24 7:37 ` Dan Carpenter
2021-02-24 7:37 ` Dan Carpenter
2021-03-03 10:52 ` Mika Penttilä
2021-03-03 12:45 ` Yongji Xie
2021-03-03 13:38 ` Mika Penttilä
2021-03-04 3:07 ` Jason Wang
2021-03-04 3:07 ` Jason Wang
2021-03-04 5:40 ` Yongji Xie
2021-02-23 11:50 ` [RFC v4 06/11] vduse: Implement an MMU-based IOMMU driver Xie Yongji
2021-03-04 4:20 ` Jason Wang
2021-03-04 4:20 ` Jason Wang
2021-03-04 5:12 ` Yongji Xie
2021-03-05 3:35 ` Jason Wang
2021-03-05 3:35 ` Jason Wang
2021-03-05 6:15 ` Yongji Xie
2021-03-05 6:51 ` Jason Wang
2021-03-05 7:13 ` Yongji Xie
2021-03-05 7:27 ` Jason Wang
2021-03-05 7:27 ` Jason Wang
2021-03-05 7:59 ` Yongji Xie
2021-03-08 3:17 ` Jason Wang
2021-03-08 3:17 ` Jason Wang
2021-03-08 3:45 ` Yongji Xie
2021-03-08 3:52 ` Jason Wang
2021-03-08 3:52 ` Jason Wang
2021-03-08 5:05 ` Yongji Xie
2021-03-08 7:04 ` Jason Wang
2021-03-08 7:04 ` Jason Wang
2021-03-08 7:08 ` Yongji Xie
2021-02-23 11:50 ` [RFC v4 07/11] vduse: Introduce VDUSE - vDPA Device in Userspace Xie Yongji
2021-02-23 15:44 ` kernel test robot [this message]
2021-02-23 20:24 ` kernel test robot
2021-03-04 6:27 ` Jason Wang
2021-03-04 6:27 ` Jason Wang
2021-03-04 8:05 ` Yongji Xie
2021-03-05 3:20 ` Jason Wang
2021-03-05 3:20 ` Jason Wang
2021-03-05 3:49 ` Yongji Xie
2021-03-10 12:58 ` Jason Wang
2021-03-10 12:58 ` Jason Wang
2021-03-11 2:28 ` Yongji Xie
2021-02-23 11:50 ` [RFC v4 08/11] vduse: Add config interrupt support Xie Yongji
2021-02-23 11:50 ` [RFC v4 09/11] Documentation: Add documentation for VDUSE Xie Yongji
2021-03-04 6:39 ` Jason Wang
2021-03-04 6:39 ` Jason Wang
2021-03-04 10:35 ` Yongji Xie
2021-02-23 11:50 ` [RFC v4 10/11] vduse: Introduce a workqueue for irq injection Xie Yongji
2021-03-04 6:59 ` Jason Wang
2021-03-04 6:59 ` Jason Wang
2021-03-04 8:58 ` Yongji Xie
2021-03-05 3:04 ` Jason Wang
2021-03-05 3:04 ` Jason Wang
2021-03-05 3:30 ` Yongji Xie
2021-03-05 3:42 ` Jason Wang
2021-03-05 3:42 ` Jason Wang
2021-03-05 6:36 ` Yongji Xie
2021-03-05 7:01 ` Jason Wang
2021-03-05 7:01 ` Jason Wang
2021-03-05 7:27 ` Yongji Xie
2021-03-05 7:36 ` Jason Wang
2021-03-05 7:36 ` Jason Wang
2021-03-05 8:12 ` Yongji Xie
2021-03-08 3:04 ` Jason Wang
2021-03-08 3:04 ` Jason Wang
2021-03-08 4:50 ` Yongji Xie
2021-03-08 7:01 ` Jason Wang
2021-03-08 7:01 ` Jason Wang
2021-03-08 7:16 ` Yongji Xie
2021-03-08 7:29 ` Jason Wang
2021-03-08 7:29 ` Jason Wang
2021-02-23 11:50 ` [RFC v4 11/11] vduse: Support binding irq to the specified cpu Xie Yongji
2021-03-04 7:30 ` Jason Wang
2021-03-04 7:30 ` Jason Wang
2021-03-04 8:19 ` Yongji Xie
2021-03-05 3:11 ` Jason Wang
2021-03-05 3:11 ` Jason Wang
2021-03-05 3:37 ` Yongji Xie
2021-03-05 3:44 ` Jason Wang
2021-03-05 3:44 ` Jason Wang
2021-03-05 6:40 ` Yongji Xie
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=202102232317.DAD0kH5P-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.