Re: [PATCH v12 5/8] virtio-balloon: VIRTIO_BALLOON_F_SG
From: kbuild test robot
Date: Wed Jul 12 2017 - 21:17:17 EST
Hi Wei,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.12 next-20170712]
[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/Wei-Wang/Virtio-balloon-Enhancement/20170713-074956
config: i386-randconfig-x071-07121639 (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=i386
All warnings (new ones prefixed by >>):
drivers//virtio/virtio_balloon.c: In function 'tell_host_one_page':
>> drivers//virtio/virtio_balloon.c:535:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
virtqueue_add_chain(vq, id, 0, NULL, (void *)addr, NULL);
^
vim +535 drivers//virtio/virtio_balloon.c
527
528 static void tell_host_one_page(struct virtio_balloon *vb, struct virtqueue *vq,
529 struct page *page)
530 {
531 unsigned int id = VIRTQUEUE_DESC_ID_INIT;
532 u64 addr = page_to_pfn(page) << VIRTIO_BALLOON_PFN_SHIFT;
533
534 virtqueue_add_chain_desc(vq, addr, PAGE_SIZE, &id, &id, 0);
> 535 virtqueue_add_chain(vq, id, 0, NULL, (void *)addr, NULL);
536 virtqueue_kick_async(vq, vb->acked);
537 }
538
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip