Re: [PATCH 2/6] virtio-balloon: speed up inflate/deflate process

From: kbuild test robot
Date: Mon Jun 13 2016 - 06:17:59 EST


Hi,

[auto build test WARNING on v4.7-rc3]
[cannot apply to next-20160609]
[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/Liang-Li/Fast-balloon-fast-live-migration/20160613-175812
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
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=m68k

All warnings (new ones prefixed by >>):

drivers/virtio/virtio_balloon.c: In function 'init_pfn_range':
>> drivers/virtio/virtio_balloon.c:123:2: warning: left shift count >= width of type
vb->min_pfn = (1UL << 48);
^

vim +123 drivers/virtio/virtio_balloon.c

107 unsigned long pfn = page_to_pfn(page);
108
109 BUILD_BUG_ON(PAGE_SHIFT < VIRTIO_BALLOON_PFN_SHIFT);
110 /* Convert pfn from Linux page size to balloon page size. */
111 return pfn * VIRTIO_BALLOON_PAGES_PER_PAGE;
112 }
113
114 static void balloon_ack(struct virtqueue *vq)
115 {
116 struct virtio_balloon *vb = vq->vdev->priv;
117
118 wake_up(&vb->acked);
119 }
120
121 static inline void init_pfn_range(struct virtio_balloon *vb)
122 {
> 123 vb->min_pfn = (1UL << 48);
124 vb->max_pfn = 0;
125 }
126
127 static inline void update_pfn_range(struct virtio_balloon *vb,
128 struct page *page)
129 {
130 unsigned long balloon_pfn = page_to_balloon_pfn(page);
131

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data