Re: [PATCH] scsi: virtio_scsi: Use struct_size() helper

2019-07-12 Thread Michael S. Tsirkin
On Thu, Jul 11, 2019 at 08:18:54PM -0400, Martin K. Petersen wrote: > > Gustavo, > > > One of the more common cases of allocation size calculations is finding > > the size of a structure that has a zero-sized array at the end, along > > with memory for some number of elements for that array. For

Re: [PATCH v3] virtio_pmem: fix sparse warning

2019-07-12 Thread Michael S. Tsirkin
On Fri, Jul 12, 2019 at 10:46:10AM +0530, Pankaj Gupta wrote: > This patch fixes below sparse warning related to __virtio > type in virtio pmem driver. This is reported by Intel test > bot on linux-next tree. > > nd_virtio.c:56:28: warning: incorrect type in assignment >

Re: [RFC] virtio-net: share receive_*() and add_recvbuf_*() with virtio-vsock

2019-07-12 Thread Jason Wang
On 2019/7/12 下午6:00, Stefano Garzarella wrote: On Thu, Jul 11, 2019 at 03:52:21PM -0400, Michael S. Tsirkin wrote: On Thu, Jul 11, 2019 at 01:41:34PM +0200, Stefano Garzarella wrote: On Thu, Jul 11, 2019 at 03:37:00PM +0800, Jason Wang wrote: On 2019/7/10 下午11:37, Stefano Garzarella wrote: H

Re: [RFC] virtio-net: share receive_*() and add_recvbuf_*() with virtio-vsock

2019-07-12 Thread Stefano Garzarella
On Thu, Jul 11, 2019 at 03:52:21PM -0400, Michael S. Tsirkin wrote: > On Thu, Jul 11, 2019 at 01:41:34PM +0200, Stefano Garzarella wrote: > > On Thu, Jul 11, 2019 at 03:37:00PM +0800, Jason Wang wrote: > > > > > > On 2019/7/10 下午11:37, Stefano Garzarella wrote: > > > > Hi, > > > > as Jason suggest